ThinkGeo.com    |     Documentation    |     Premium Support

Rotating the WPF map

Hey,

I have tried to find some examples about rotating the MapView (WPF) but can’t seem to make it happen. I noticed MapView has properties such as

  • Map.ExtentOverlay.RotationKey
  • Map.ExtentOverlay.RotationMouseButton

and by default I can rotate the view by holding down the left Alt and then dragging the map with LeftMouseButton.

I figured that only thing I need to do is set the Map.RotatedAngle property to make this happen… but seems that’s not the case.

Is there an easy way to rotate the map w/o playing around with RotationProjectionConverter for each layer (which I also didn’t get to work properly) ?

1 Like

Thanks Mikko,
Yes, Here is the sample

Like you mentioned you need set Map.RotatedAngle. Right now the label will be rotated as well. We are working on this one to keep the label always horizontal.

Thanks

Frank

1 Like

Thanks. Seems like all I was missing was Refresh().

Thanks Mikko,
Good to know it works. Go ahead let us know if you have more questions.

Thanks

Frank