diff --git a/example/marker-clustering-custom.html b/example/marker-clustering-custom.html index df73a2cb57..52d52e2975 100644 --- a/example/marker-clustering-custom.html +++ b/example/marker-clustering-custom.html @@ -85,6 +85,7 @@ function removePolygon() { if (shownLayer) { shownLayer.setOpacity(1); + shownLayer = null; } if (polygon) { map.removeLayer(polygon);