Hi guys,
For some time now my users have been experiencing a very odd (and certainly annoying) issue when they make zoom operatins in the MapSuite component. It does not happen always but in some installations and sometimes.
I was unable to reproduce it in my own PC so please don't ask me for a simple sample, but I saw it in a couple of different customers PCs.
As you can see in this video: dl.dropbox.com/u/6792052/VID_20130121_101114.mp4 after changing the scale the "targets" (orange icons with red track lines) LayerOverlay get rescalled, but the background Shapefile (shorelines) not. Just by starting a map drag the background overlay gets synced again instantly.
By doing tests I localiced the issue in the folloging pice of code
If SelectedScale <> WpfMap1.CurrentScale Then
'Center to the mouse position
WpfMap1.RestrictExtent = Nothing 'Disables termporally the RestrictExtent
WpfMap1.CenterAt(ScreenMouseX, ScreenMouseY)
WpfMap1.RestrictExtent = New RectangleShape(-3600, 89, 3600, -89)
'Zoom to the new scale
WpfMap1.ZoomToScale(SelectedScale)
End If
If I comment the center at code it works fine (despite it does not center to the selected location first), but as soon as I try to center to the selected point and then zoom to other scale I have a chance of getting this odd issue
Actually I'm ussing 6.0.260.0 dlls, and it also failed with 6.0.200.0. Older version (don't remember which one) didn't fail.
Could you please look at your internal threading in order to see if you can determine and fix the root cause of the issue?
Thanks in advance
Carlos