aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-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;
}