ThinkGeo.com    |     Documentation    |     Premium Support

Center and Rotate Map or Rotate and Center Map?

Hi,


I am trying to rotate the map according to the tracked vehicle's heading. This works fine - but I am having an issue centering the map on said vehicle's current position.


If  I center the map prior to seting the CurrentExtent of the map to the RotationProjection's updated extent (after setting the new rotation angle) the first point is dead on. Unfortunately, each subsequent point seems to "stairstep" away from the center point by an incremental amount...


If I center the map after the rotation, the point is in a seemingly completely random position...


What am I missing?


Thanks for any help!


Justin



Actually, I am currently working on a project for the Code Community that answers exactely your question. Please, check again the Code Community tomorrow afternoon and it should be posted. Thank you.

Thanks Val - I actually got it working as well. I will be curious to see if what I did is similar to yours. The RotationProject object model seems a little confusing to me… 
  
 Cheers! 
  
 Justin 


Justin, 
  
 Thanks for letting us know your status. That would be great if you could share us your project. 
  
 Any more questions just feel free to let me know. 
  
 Thanks. 
  
 Yale 


I let you know that today, we published a project in the Code Community Center and Rotate Map. You can download the project and compare it to the solution you have.


code.thinkgeo.com/projects/s...ngrotating