You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having every addition to the map call setView() seems silly in terms of performance, and I also worry that we are relying on browser timing when we do that. I wonder if MutationObserver allows us to run a command after each action has completed.
The text was updated successfully, but these errors were encountered:
This turned out to be tricky, because the mutations are only done processing after the aggregate of children nodes has been added. We could track those with a Promise (initialChildrenLoads), but I'm a bit wary of the complexity. Perhaps a better feature is to add controls for the user, in the form of Geolocation and Marker buttons.
fpapado
changed the title
Improvement: Batch map.setView() after the mutations are processed
Feature: Add Leaflet Controls to position based on user or marker aggregate
Jul 12, 2019
Having every addition to the map call
setView()
seems silly in terms of performance, and I also worry that we are relying on browser timing when we do that. I wonder ifMutationObserver
allows us to run a command after each action has completed.The text was updated successfully, but these errors were encountered: