aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2012-11-20 16:15:54 -0200
committerSilvio <silvio@socioambiental.org>2012-11-20 16:15:54 -0200
commita17c32e22ce03138f9d0e3716e0f14187ad8b0d1 (patch)
treec29762d5ca807a7488b9efddf45ccb4671c98742
parentde75c249146ba73aec50730b343a17945ffa26c4 (diff)
downloadgmap_arcgis-a17c32e22ce03138f9d0e3716e0f14187ad8b0d1.tar.gz
gmap_arcgis-a17c32e22ce03138f9d0e3716e0f14187ad8b0d1.tar.bz2
Using DynamicMapServiceLayer's event method to unblock the UI
-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