Select to view content in your preferred language

Map.PanTo does not update dynamic layers when PanDuration is set to 0

532
1
12-27-2012 07:13 AM
GearoidO_Riain
Deactivated User
Hi,

I just ran into an issue when Map.PanTo method does not seem to work properly. I set PanDuration of Map control to 0:00:00 to disable the animation. When I try to programmatically pan the map (using PanTo method), a dynamic map resource is not being updated. The same happens when using the Navigation control to pan the map.

Is there any other way how to disable Pan Animation? The reason I try to disable it is that it actually shifts the map image (from some reason). I have two map controls on the top of each other and when both of them have Pan Animation enabled, even though I use the same point, the resulting images are slightly shifted. I noticed that by disabling the Pan Animation on the top Map control, the images will match. But then I lose the automated update mechanism of the map control.

Pavel
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Looks like there is an issue with the 'Map.PanTo' method.

Thanks for reporting that.

Until it's fixed, the workaround may be to use 'ZoomTo' instead of 'PanTo'.
0 Kudos