aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-rw-r--r--gmap_arcgis.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index 4cd0fab..2fda599 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -566,7 +566,7 @@ function gmapArcgis(config) {
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') {
+ if (type == 'selectToUISlider' && jQuery.selectToUISlider) {
jQuery(element).selectToUISlider({
sliderOptions: {
slide: function(event, ui) {
@@ -575,7 +575,7 @@ function gmapArcgis(config) {
}
}).hide();
}
- else {
+ else if (jQuery.slider) {
// Max is the number of layers in the service
jQuery(element).slider({
value: value,