maxwellr

Zoom to point

Discussion created by maxwellr on Jan 6, 2012
Latest reply on Jan 15, 2013 by jay.gregory
I'm seeing a problem with the centerAndZoom method for the map. The code is pretty straightforward:

map.centerAndZoom(pt, 0.1);


But instead of zooming in, it zooms OUT, regardless of the map scale prior to calling the method.

The map includes a base map that is an ArcGISDynamicMapServiceLayer, overlayed with several editable FeatureLayers.

This used to work for me but for some reason it started behaving strangely and I'm not sure what's different. It behaves the same in versions 2.5 and 2.6.

Outcomes