aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-07-29 17:34:38 -0300
committerSilvio <silvio@socioambiental.org>2013-07-29 17:34:38 -0300
commitec5d461b898b7c6b39cd3b1776230f34bce05f5b (patch)
tree3e01c118fa6cdf424cf467a26e1e2cd0b508d33a
parentbe8210703b90c0d42378a219346a82149b35f972 (diff)
downloadgmap_arcgis_js-ec5d461b898b7c6b39cd3b1776230f34bce05f5b.tar.gz
gmap_arcgis_js-ec5d461b898b7c6b39cd3b1776230f34bce05f5b.tar.bz2
Moving unblockUI() to showKML()
-rw-r--r--gmap_arcgis.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index c03778d..f777d5f 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -33,16 +33,16 @@ function gmapArcgis(config) {
// UI unblocker wrapper
unblockUI: function() {
if (window.ui == undefined || window.ui == 'blocked') {
- jQuery.unblockUI();
window.ui = 'unblocked';
+ jQuery.unblockUI();
}
},
// UI blocker wrapper
blockUI: function(params) {
if (window.ui == undefined || window.ui == 'unblocked') {
- jQuery.blockUI(params);
window.ui = 'blocked';
+ jQuery.blockUI(params);
}
},
@@ -205,13 +205,13 @@ function gmapArcgis(config) {
this.config['kmls'][element].overlay.setMap(this.map);
this.config['kmls'][element].isVisible = true;
+ this.unblockUI();
},
// Add a KML layer into the map
addKML: function(element) {
if (typeof this.config['kmls'][element].overlay != 'undefined') {
this.showKML(element);
- this.unblockUI();
return;
}