leaflet.fullscreen
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -221,3 +221,3 @@ /* | ||
if (this._screenfull.isEnabled && !this.options.forcePseudoFullscreen) { | ||
this._screenfull.exit(); | ||
this._screenfull.exit().then(() => map.invalidateSize()); | ||
} else { | ||
@@ -236,3 +236,3 @@ leaflet.DomUtil.removeClass(this.options.fullscreenElement | ||
? this.options.fullscreenElement | ||
: map._container); | ||
: map._container).then(() => map.invalidateSize()); | ||
} else { | ||
@@ -261,3 +261,3 @@ leaflet.DomUtil.addClass(this.options.fullscreenElement | ||
if (ev.target === map.getContainer() && !this._screenfull.isFullscreen && !map._exitFired) { | ||
map.invalidateSize(); | ||
this._screenfull.exit().then(() => map.invalidateSize()); | ||
map.fire('exitFullscreen'); | ||
@@ -264,0 +264,0 @@ map._exitFired = true; |
{ | ||
"name": "leaflet.fullscreen", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Simple plugin for Leaflet that adds fullscreen button to your maps.", | ||
@@ -5,0 +5,0 @@ "main": "Control.FullScreen.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17878