appbaseio / reactivesearch

Search UI components for React and Vue
https://opensource.appbase.io/reactivesearch
Apache License 2.0
4.91k stars 468 forks source link

[MAP] defaultValue in DataSearch don't show anything on the map #1350

Closed e-gaulue closed 4 years ago

e-gaulue commented 4 years ago

Affected Projects React

Library Version: "@appbaseio/reactivemaps": "^3.0.0-beta.4", "@appbaseio/reactivesearch": "^3.3.7",

Describe the bug If I put a string in defaultValue of my DataSearch, I see results in DataList but nothing on the map. If I type this same string in the search field of my DataSearch and press 'Return', I get the same results in DataList, but I can see the plots on the map.

Expected behavior When a Elasticsearch request is triggered (through defaultValue or type by user), map should synchronise as well.

e-gaulue commented 4 years ago

You can't use DataList and ReactiveMap together, they are two different tool.

You can use renderAllData of ReactiveMap to list all your data linked with your map.