Event on popup display
-
I’m trying to display an openstreetmap map inside a popup using Leaflet maps. The problem is that the map initialises while the popup is hidden, and when the popup opens, only a single map tile is displayed. I can fix that by calling map.invalidateSize() but I need something to hook into to call that function.
I have tried a mutation observer but observing my own map div doesn’t work and I’m not sure what else to observe. Observing the whole document seems like a blunt instrument.
Any suggestions?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Event on popup display’ is closed to new replies.