Search results are not synchronized between the map and the list:
1. It's not possible to find the search result from the list on the map
2. When the map is scrolled, search results on the list are not updated
3. When the list is scrolled, search results on the map are not updated
4. We can't update the list and show new search results (f.e. when the location is changed and search results are reordered by distance)
For this type of data (search results) we should use Place List (navigation) template:
Tempate's refresh restrictions. Template Restrictions In regards to template refreshes, as described in onGetTemplate, this template is considered a refresh of a previous one if:
There is only one way to update search results in the list for our case: to trigger OnContentRefreshListener
. This means there is no way to fix the 2nd problem. We can only fix the 4th problem. And this will require additional action from the user (thanks, Google)
That's how it should look like:
OnContentRefreshListener
EVMap has this OnContentRefreshListener
implemented. There should be a refresh button (β») on the top right pane of the template. Like shown in the design guidelines. Do you see it on the video? No? Neither do I π’
I also tried to implement it on our SearchOnMapScreen
and didn't succeed.
Perhaps it's a DHU problem
There is a new feature in lib 1.4-alpha
Unfortunately, it won't help us because Section names
still must not change. We're still not able to fix the 2nd problem.
Now we already know that 2nd problem can't be fixed and 4th problem will require additional action from the user.
Solution for 1 and 3 - will require a lot of work inside the core to provide the same result as EVMap does.
Solution for 4 - will require only to set OnContentRefreshListener
but it's not yet known how to test it and whether it works or not.
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too