map = new esri.Map("map", { slider:false, basemap: "streets", center: [-0.136, 51.510], zoom: 15 });
dojo.connect(map, "onLoad", function(){ map.hideZoomSlider(); });
Instead of using the map property isZoomSlider you can use the map's constructor option of slider: Alternatively you can use the map's hideZoomSlider method to show/hide the slider after map creation: dojo.connect(map, "onLoad", function(){ map.hideZoomSlider(); });
map.on("load", function(){map.hideZoomSlider();});
map = new Map("mapDiv", { center: [-56.049, 38.485], //longitude, latitude zoom: 3, sliderStyle: "large", basemap: "streets", slider: true, //default sliderPosition: "top-left" //default });
map.on("load", function(){map.hideZoomSlider();});Works for me.Sample here:http://jsfiddle.net/WrQe4/
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.