Select to view content in your preferred language

Extent can not be set correctly if map rotated

597
1
01-04-2012 10:43 PM
EddieViljoen
Deactivated User
Blessed 2012 to you all.

I need help with the following:
If the map is rotated, and I get and set the Extent of the map, then after setting it, the extent is not the same as before.  If the rotation angle is 0, then this is not a problem.

To test you can do the following:

Create a button that will call the following sub:

sub RotateMap
Map.RotationAngle = 70
End Sub

Create another button that will call the following sub:
Sub DoMapExtent
Dim  L_ExtentRect
set L_ExtentRect = application.map.extent
application.map.extent = L_ExtentRect
end sub

You will see that if you call "DoMapExtent" then all will be OK, but if you first call "RotateMap" then every time you call "DoMapExtent" the Map zooms out.

Am I missing something here?

Eddie
Tags (3)
0 Kudos
1 Reply
MaxRingler
Occasional Contributor
I can second that - when the map is rotated manually and then panned or rescaled, this  causes the map view to pan or rescale entirely erratically and not in  the desired way of the specific pan or rescale applied. Basically this  renders the rotation function entirely useless as it requires to  pan and zoom in again to the needed map section if this  happens.

Apperently this a known, 6-year old buf which still has not been adressed...
0 Kudos