diff options
author | Silvio <silvio@socioambiental.org> | 2013-07-31 18:02:57 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-07-31 18:02:57 -0300 |
commit | 381032612f44fbdf3b70649eb01d5de41d919328 (patch) | |
tree | 2c85b2f3aa18f05ce342947961d20eb64a7a7707 | |
parent | 08c9b141ae506468cd781845f8edea2cb5a1dec5 (diff) | |
download | gmap_arcgis_js-381032612f44fbdf3b70649eb01d5de41d919328.tar.gz gmap_arcgis_js-381032612f44fbdf3b70649eb01d5de41d919328.tar.bz2 |
Fixing sliderUpdateOpacity() callback on addSlider()
-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 19e06a5..11be1c5 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -254,7 +254,6 @@ function gmapArcgis(config) { // Add a slider layer in the map addSlider: function(layer, slider) { this.config['sliders'][slider].opacity = this.defaultOpacity(layer, 'sliders'); - this.config['sliders'][slider].callback = this.sliderUpdateOpacity; this.config['sliders'][slider].layers = [layer]; if (typeof this.config['sliders'][slider].overlays[layer] != 'undefined') { @@ -264,6 +263,7 @@ function gmapArcgis(config) { this.showOverlayIf('sliders', slider); this.config['sliders'][slider].overlays[layer] = this.showPolygon(this.config['sliders'][slider]); + this.sliderUpdateOpacity(layer, slider); }, // Add makers to the map |