CityOfSurrey

Zoom to Point...

Discussion created by CityOfSurrey on Nov 9, 2011
Latest reply on Nov 14, 2011 by DSwingley-esristaff
Is this still the method to zoom to a point using the ESRI Javascript API?

 var PointExtent = new esri.geometry.Extent();
 PointExtent.xmin = selectedAddress.geometry.x - .001;
 PointExtent.ymin = selectedAddress.geometry.y - .001;
 PointExtent.xmax = selectedAddress.geometry.x + .001;
 PointExtent.ymax = selectedAddress.geometry.y + .001;
 map.setExtent(PointExtent);


Or, is there a new method?

Thanks in advance,

M

Outcomes