diff options
author | Silvio <silvio@socioambiental.org> | 2013-04-16 18:36:14 -0300 |
---|---|---|
committer | Silvio <silvio@socioambiental.org> | 2013-04-16 18:36:14 -0300 |
commit | 0910647b7b15c9fbb87cd6f3832c1c921e0d7a42 (patch) | |
tree | ed5fb218ec8ce75f224934e22ba0778c80962dc2 | |
parent | e73f2ddfe054d14d9c927225e3e06b5a387cadcd (diff) | |
download | gmap_arcgis_js-0910647b7b15c9fbb87cd6f3832c1c921e0d7a42.tar.gz gmap_arcgis_js-0910647b7b15c9fbb87cd6f3832c1c921e0d7a42.tar.bz2 |
Adding showSlider and hideSlider methods
-rw-r--r-- | gmap_arcgis.js | 14 |
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. |