diff options
author | Silvio <silvio@socioambiental.org> | 2012-11-20 16:15:54 -0200 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2012-11-20 16:15:54 -0200 |
commit | a17c32e22ce03138f9d0e3716e0f14187ad8b0d1 (patch) | |
tree | c29762d5ca807a7488b9efddf45ccb4671c98742 | |
parent | de75c249146ba73aec50730b343a17945ffa26c4 (diff) | |
download | gmap_arcgis-a17c32e22ce03138f9d0e3716e0f14187ad8b0d1.tar.gz gmap_arcgis-a17c32e22ce03138f9d0e3716e0f14187ad8b0d1.tar.bz2 |
Using DynamicMapServiceLayer's event method to unblock the UI
-rw-r--r-- | gmap_arcgis.js | 2 |
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 |