aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index c93a8cc..c843cd2 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -146,8 +146,8 @@ function showPolygon(polygon) {
polygon.overlay.setVisibleLayers(layers);
}
- //GEvent.addListener(polygon.overlay,"load",function(g) { map.addOverlay(g);setTimeout($.unblockUI, 6000);});
GEvent.addListener(polygon.overlay, "load", showPolygonCallback);
+ GEvent.addListener(polygon.overlay, "update", function() { unblockUI(); });
}
// Callback for showPolygon