Commit 4d47f950b7aa14a24ed6196dbf07470541408ca0

Authored by Edmar Moretti
1 parent e558bdd8

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

admin/admin.db
No preview for this file type
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 }