AnatomicMaps / flatmap-viewer

0 stars 7 forks source link

Improve behaviour of minimap when using it to pan viewport #8

Open dbrnz opened 1 year ago

dbrnz commented 1 year ago

When the flatmap's minimap is used to pan the viewport, it first zooms out a bit and then moves to the new location.

This is possibly because the map’s bounds haven’t been fully determined when the minimap control is created, or because fitbounds() in the minimap's mouse move handler has a duration set.