aboutsummaryrefslogtreecommitdiff
path: root/gmap_arcgis.js
diff options
context:
space:
mode:
Diffstat (limited to 'gmap_arcgis.js')
-rw-r--r--gmap_arcgis.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/gmap_arcgis.js b/gmap_arcgis.js
index f34b6ce..06d8920 100644
--- a/gmap_arcgis.js
+++ b/gmap_arcgis.js
@@ -419,6 +419,20 @@ function gmapArcgis(config) {
}
},
+ // Show slider in the map
+ showSlider: function(slider) {
+ for (var i in this.config['sliders'][slider].overlays) {
+ this.config['sliders'][slider].overlays[i].setMap(this.map);
+ }
+ },
+
+ // Hide slider from the map
+ hideSlider: function(slider) {
+ for (var i in this.config['sliders'][slider].overlays) {
+ this.config['sliders'][slider].overlays[i].setMap(null);
+ }
+ },
+
/**
* Returns the zoom level at which the given rectangular region fits in the map view.
* The zoom level is computed for the currently selected map type.