Skip to content

Commit 8a909a0

Browse files
committed
Improved check for L.MarkerClusterGroup.
1 parent 44b7d0e commit 8a909a0

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

dist/leaflet.browser.print.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
*
3-
* leaflet.browser.print - v0.6.5 (https://github.com/Igor-Vladyka/leaflet.browser.print)
3+
* leaflet.browser.print - v0.6.6 (https://github.com/Igor-Vladyka/leaflet.browser.print)
44
* A leaflet plugin which allows users to print the map directly from the browser
55
*
66
* MIT (http://www.opensource.org/licenses/mit-license.php)
@@ -940,7 +940,7 @@ L.Control.BrowserPrint.Utils = {
940940
getType: function(layer) {
941941
if (L.SVG && layer instanceof L.SVG) { return "L.SVG"; } // Renderer
942942
if (L.Canvas && layer instanceof L.Canvas) { return "L.Canvas"; } // Renderer
943-
if (layer instanceof L.MarkerClusterGroup) { return "L.MarkerClusterGroup"; } // MarkerCluster layer
943+
if (L.MarkerClusterGroup && layer instanceof L.MarkerClusterGroup) { return "L.MarkerClusterGroup"; } // MarkerCluster layer
944944
if (layer instanceof L.TileLayer.WMS) { return "L.TileLayer.WMS"; } // WMS layers
945945
if (layer instanceof L.TileLayer) { return "L.TileLayer"; } // Tile layers
946946
if (layer instanceof L.ImageOverlay) { return "L.ImageOverlay"; }

0 commit comments

Comments
 (0)