Leaflet / Leaflet.fullscreen

A fullscreen control for Leaflet
http://leaflet.github.io/Leaflet.fullscreen/
ISC License
436 stars 117 forks source link

toggleFullscreen() no longer needs options param to get pseudoFullscreen prop #52

Closed shaefner-usgs closed 8 years ago

shaefner-usgs commented 8 years ago

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.)

jfirebaugh commented 8 years ago

Thanks for the contribution! However, I prefer to keep the existing behavior.