I'm evaluating the XamMap class and need to be able to rotate the map view depending on a user-selectable orientation. However, I fail to find any property like e.g. 'Heading' in the XamMap- and associated classes. How do I set the rotation in XamMap ?
Regards,Leif
No response ? I guess that means that the XamMap does not support rotation in an easy way ? That will make the whole control useless for our purpose since I need to make the map orientation fit the way users want to display the overlay data on screen. I'm surprised if such an advanced control doesn't support such a scenario.
Hi Leif,
I'm sorry that I didn't get back to you sooner. Here is my sample using world shape files and RotateTransform to rotate the map 90 degrees with each click on the button.
Hope this helps. Please let me know if you have any questions.
Thanks for posting your work around. It may be helpful to someone else until your product idea is incorporated into the control.
Please let me know if there is anything more I can help you with.
Hi,
I hope this feature will be added to a soon upcoming version, as I see rotation as a very natural feature of a map control.
I seem to have found a workaround myself that puts the XamMap in a grid with a XamMap size that extends the size of the parent grid. I have to resize the XamMap when the parent grid is resized and the XamMap size depends on e.g. the Grid's aspect ratio to be able to apply a layout transform rotation with no visual artifacts. The XamMap's viewport must also be calculated to extend beyond the viewport that I actually want displayed on screen. This solution is not ideal as it e.g. means that I have to download tiles that may never be displayed on screen, but I can live with it for now.
I hadn’t heard back from you and I was wondering if you had further questions.
Please let me know if I can help further.
There is currently no setting that would rotate the map as you suggest. Using LayoutTransform or RenderTransform on the XamMap control, because of the when the size of the element is determine and the size and position of surrounding elements, is problematic as you suggested. This link may help explain the differences.
http://www.scottlogic.co.uk/blog/colin/2008/12/layouttransform-vs-rendertransform-whats-the-difference/
You might be able to use the LayoutTransform and shade the background to minimize the visual impact.
I have submitted an additional product idea for you with the details that we have discussed, directly to our Product Management team. Our product team chooses new product ideas for development based on popular feedback from our customer base. Infragistics continues to monitor application development for all of our products so as trends appear in product ideas, we can plan accordingly.
We value your input, and our philosophy is to enhance our toolset based on customer feedback. If your features are chosen for development you will be notified at that time. Your reference number is PI13030114.
If you would like to follow up on your product idea at a later point, you may contact Developer Support management via email. Please include the reference number of your product idea in the subject and body of your email message. You can reach Developer Support management through the following email address: dsmanager@infragistics.com
Please let me know if you need any further assistance.
any news on this one ?