diff options
author | Silvio <silvio@socioambiental.org> | 2016-02-24 15:46:39 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2016-02-24 15:46:39 -0300 |
commit | 28d98f0c7a192e127f8d079cce96635f04129e3f (patch) | |
tree | 60474f95a2b47fa90477ca09896899d2e3b0f5a9 | |
parent | 215448a1b8edcfa3c14b30c42b1d28c1a70b2194 (diff) | |
download | gmap_arcgis_js-28d98f0c7a192e127f8d079cce96635f04129e3f.tar.gz gmap_arcgis_js-28d98f0c7a192e127f8d079cce96635f04129e3f.tar.bz2 |
Another variable test
-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 dc26742..55c6b71 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -436,7 +436,7 @@ function gmapArcgis(config) { // Toggle layer visibility toggleLayers: function(element) { - if (this.config['layers'][element].overlay != undefined && this.config['layers'][element].overlay.setVisible != undefined) { + if (this.config['layers'][element] != undefined && this.config['layers'][element].overlay != undefined && this.config['layers'][element].overlay.setVisible != undefined) { var changeTo = !this.config['layers'][element].overlay.getVisible(); this.config['layers'][element].overlay.setVisible(changeTo); } |