aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gmap_arcgis.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index e804707..4cd0fab 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -551,6 +551,15 @@ function gmapArcgis(config) {
// jQuery slider wrapper
slider: function(element, slider) {
var self = this;
+
+ if (self.config.sliders == undefined) {
+ self.config.sliders = {};
+ }
+
+ if (self.config.sliders[slider] == undefined) {
+ self.config.sliders[slider] = {};
+ }
+
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;