Commit 100382a990b8c8091dacb7dff92997e50ea68fa6

Authored by Edmar Moretti
1 parent dd8176de
Exists in master

Correção no fechamento da janela de aguarde do markercluster

pacotes/markercluster/openlayers/AnimatedCluster.js
@@ -155,7 +155,7 @@ OpenLayers.Strategy.AnimatedCluster = OpenLayers.Class(OpenLayers.Strategy.Clust @@ -155,7 +155,7 @@ OpenLayers.Strategy.AnimatedCluster = OpenLayers.Class(OpenLayers.Strategy.Clust
155 if(this.layer && this.layer.map) { 155 if(this.layer && this.layer.map) {
156 var screenBounds = this.layer.map.getExtent(); 156 var screenBounds = this.layer.map.getExtent();
157 var featureBounds = feature.geometry.getBounds(); 157 var featureBounds = feature.geometry.getBounds();
158 - if(!screenBounds.intersectsBounds(featureBounds)) { 158 + if(!screenBounds || !screenBounds.intersectsBounds(featureBounds)) {
159 continue; 159 continue;
160 } 160 }
161 } 161 }