aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@socioambiental.org>2013-04-16 18:36:14 -0300
committerSilvio <silvio@socioambiental.org>2013-04-16 18:36:14 -0300
commit0910647b7b15c9fbb87cd6f3832c1c921e0d7a42 (patch)
treeed5fb218ec8ce75f224934e22ba0778c80962dc2
parente73f2ddfe054d14d9c927225e3e06b5a387cadcd (diff)
downloadgmap_arcgis_js-0910647b7b15c9fbb87cd6f3832c1c921e0d7a42.tar.gz
gmap_arcgis_js-0910647b7b15c9fbb87cd6f3832c1c921e0d7a42.tar.bz2
Adding showSlider and hideSlider methods
-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.