empeypp

Hide Zoom slider

Discussion created by empeypp on Jan 20, 2012
Latest reply on Jan 20, 2012 by khutchins-esristaff
Hello,

I have a very simple question. How do I hide the zoom slider?

//creating the map and giving its extent
  map = new esri.Map("mapDiv", {
          extent: new esri.geometry.Extent({
            xmin: -8493917.422371,
            ymin: -103006.213374596,
            xmax: -13493917.422371,
            ymax: 9260250.68904796,
            spatialReference: {
              wkid: 102100
            }
          }),
  //calling the lods array above. This tells the map which views to use
  lods: lods
        });
  
  map.hideZoomSlider();


what's wrong with this code?

Thanks!

Outcomes