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