From 0910647b7b15c9fbb87cd6f3832c1c921e0d7a42 Mon Sep 17 00:00:00 2001 From: Silvio Date: Tue, 16 Apr 2013 18:36:14 -0300 Subject: Adding showSlider and hideSlider methods --- gmap_arcgis.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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. -- cgit v1.2.3