Select to view content in your preferred language

Zoom to point

1249
10
01-06-2012 08:43 AM
ReneeMaxwell
Occasional Contributor
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.
0 Kudos
10 Replies
Jay_Gregory
Regular Contributor
As far as the blurring issue to which Renee Maxwell referenced when changing the map zoom level programatically, I was seeing some strange behavior there as well.  I was able to resolve this issue by changing my navigationMode in my map object from 'css-transforms' to 'classic'.
0 Kudos