mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-18 21:16:47 +00:00
5c7aaab3c6
The opening camera of the public share map was computed for the browser window, while the map lives in a card a fraction of that size. Leaflet then rounded the fractional zoom up, and the first fit skipped its correction because it believed the map had already opened framed. Only picking a day and going back to the whole trip ran a real fit. The card is now measured before the map mounts and the opening frame is computed for it, on a whole zoom level, with the same padding and zoom cap the later fits use. A card without layout falls back to the first fit. Closes #2549