I use leaflet3.js and leaflet-fullscreen-min.js In map, I have fullscreen control button to toggle between maximize and minimize. If page reloads, everthing works fine. But if only map div reloads, fullscreenElement doesn't get updated with new div.
This reference states that - If there's more than one element in the full-screen mode element stack, then this property returns the top element.
So when map div refreshes, fullscreenElement doesn't get updated with new one. This is a bug in leaflet3.js
when map in minimized state, it displays maximize icon (This is ok)
So once map is maximized, icon doesn't change to minimize button
Problem is, fullscreenElement doesn't get changed if a page has more than one map (ie. div reloads with same map again which is not reflected in fullscreenElement).
I use
leaflet3.js
andleaflet-fullscreen-min.js
In map, I have fullscreen control button to toggle between maximize and minimize. If page reloads, everthing works fine. But if only map div reloads,fullscreenElement
doesn't get updated with new div.This reference states that - If there's more than one element in the full-screen mode element stack, then this property returns the top element.
So when map div refreshes,
fullscreenElement
doesn't get updated with new one. This is a bug inleaflet3.js
when map in minimized state, it displays maximize icon (This is ok) So once map is maximized, icon doesn't change to minimize button Problem is,
fullscreenElement
doesn't get changed if a page has more than one map (ie. div reloads with same map again which is not reflected infullscreenElement
).What would be the solution for this?