From 381032612f44fbdf3b70649eb01d5de41d919328 Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 31 Jul 2013 18:02:57 -0300 Subject: Fixing sliderUpdateOpacity() callback on addSlider() --- gmap_arcgis.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3