Closed jimmykirk closed 8 years ago
I love this plugin, but my one request would be to allow leaflet to zoom to an extent AFTER the map is full screen or returned to normal. I included my function I use to do this in:
map.on('enterFullscreen', function(){ auto_zoom_map(); }); map.on('exitFullscreen', function(){ auto_zoom_map(); });
However, there seems to be a race condition. If I run the function afterwards, it works perfectly.
I'm not sure to understand your bug, but you should try to "listen" to size change on your map.
Thank you brunob. I am fairly new to JS. Thank you for the nudge.
I love this plugin, but my one request would be to allow leaflet to zoom to an extent AFTER the map is full screen or returned to normal. I included my function I use to do this in:
However, there seems to be a race condition. If I run the function afterwards, it works perfectly.