diff options
author | Silvio <silvio@socioambiental.org> | 2014-06-18 17:02:14 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2014-06-18 17:02:14 -0300 |
commit | 6f393e84f23c6627f3f0e080f9f84509c2fa3d18 (patch) | |
tree | a6be884f83eb3b1312a5d8e879bc34dc1b3f714e | |
parent | ec51720696e16d3b9c3286b9fc3522ece39277e0 (diff) | |
parent | 2d894c875d30841bdd666ffe6df3efc494973097 (diff) | |
download | gmap_arcgis_js-6f393e84f23c6627f3f0e080f9f84509c2fa3d18.tar.gz gmap_arcgis_js-6f393e84f23c6627f3f0e080f9f84509c2fa3d18.tar.bz2 |
Merge branch 'master' of ssh://isasite/home/isa/projetos/git/gmap_arcgis_js
-rw-r--r-- | gmap_arcgis.js | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js index 054c8c7..469a04d 100644 --- a/gmap_arcgis.js +++ b/gmap_arcgis.js @@ -478,8 +478,12 @@ function gmapArcgis(config) { // jQuery slider wrapper slider: function(element, slider) { - var self = this; - var type = (self.config.sliders[slider].type != undefined) ? self.config.sliders[slider].type : 'slider'; + var self = this; + var type = (self.config.sliders[slider].type != undefined) ? self.config.sliders[slider].type : 'slider'; + var value = (self.config.sliders[slider].value != undefined) ? self.config.sliders[slider].value : 1; + var min = (self.config.sliders[slider].min != undefined) ? self.config.sliders[slider].min : 1; + var max = (self.config.sliders[slider].max != undefined) ? self.config.sliders[slider].max : 1; + var step = (self.config.sliders[slider].step != undefined) ? self.config.sliders[slider].step : 1; if (type == 'selectToUISlider') { $(element).selectToUISlider({ @@ -493,10 +497,10 @@ function gmapArcgis(config) { else { // Max is the number of layers in the service $(element).slider({ - value: 1, - min: -1, - max: 11, - step: 1, + value: value, + min: min, + max: max, + step: step, animate: true, change: function(event, ui) { self.sliderUpdate.apply(self, [ ui.value, slider ]); |