bugfix: center map for grouped resources #613
Instead of calling reset
multiple times quickly, I created a function which plan to execute a reset
at the end of the queue, only if none are planned already.
Like this, only one reset
is called, even if the populate is called a lot of times.
To test:
<solid-map
data-src="https://faabrick-cherdet.happy-dev.fr/societes/"
style="display: block; width: 800px; height: 600px;"
fields='name'
search-fields="activity"
search-range-activity="https://faabrick-cherdet.happy-dev.fr/activitys/"
group-by="activity.name"
></solid-map>
Do:
- Filter by "Coopérative d'activité et d'emploi" -> the map centers
- Filter by "-" -> the map on France, instead of the world. With the fix, it should go back to world.
Closes #613 (closed)