Closed shaefner-usgs closed 8 years ago
Thanks for the contribution! However, I prefer to keep the existing behavior.
map.toggleFullscreen({pseudoFullscreen: true})
if that's what you want, rather than implicitly coupling the behavior of map.toggleFullscreen()
to the options used for the most recently created L.Control.Fullscreen
.
calling toggleFullscreen() works from outside the plugin Class if you're using 'pseudoFullscreen: true' (since it isn't interacting with browser's native full-screen api).
I'm manually calling this method to restore the fullscreen state on page load, but it doesn't make sense to have to pass the pseudoFullscreen prop into this method when it already has been set on instantiation. (And in my case, I don't have access to that property from the module where I'm calling toggleFullscreen.)