Bing Maps Silverlight Heading Property or Map.SetView still not working in 2012
-
2011年12月31日 上午 01:01
Does anyone have a working example of being able to set the Map.Heading property or use the Map.SetView(location, zoom, HEADING)?
I can't find any recent information on this and it has consumed too much time.
Yes, I know it isn't 2012, but hopefully it will help anyone else looking for recent information.
- 已移動 Richard_BrundrittMicrosoft Employee, Owner 2012年3月10日 下午 12:39 (From:Bing Maps: Map Control and Web services Development)
所有回覆
-
2011年12月31日 上午 01:04The purpose being to rotate the map. I have created Silverlight rotation which works for additional map layer but doesn't seem to want to work with the Bing map tiles. I'm trying to avoid rotating the entire control.
-
2012年1月4日 下午 08:51
Can anybody help with this? Has anyone successfully used the Heading property or SetView method?
Has anyone even tried?
Thanks.
-
2012年1月4日 下午 10:52版主From memory, the Heading property works pretty much as documented... note that you can't simply rotate the map tiles to an abitrary angle though - the heading's got to be one of 0, 90, 180, or 270 - representing the four cardinal compass directions, as described here: http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.core.mapbase.heading.aspx
twitter: @alastaira blog: http://alastaira.wordpress.com/- 已提議為解答 Richard_BrundrittMicrosoft Employee, Owner 2012年1月5日 下午 06:35
- 已標示為解答 Richard_BrundrittMicrosoft Employee, Owner 2012年1月12日 上午 10:16
- 已取消標示為解答 tanoshimiMVP, Moderator 2012年3月26日 下午 07:44
- 已取消提議為解答 Richard_BrundrittMicrosoft Employee, Owner 2012年4月2日 上午 09:14
-
2012年3月26日 下午 07:43版主Actually, I take my last post back. I thought I'd gotten the Heading property to work in the past but, trying it again now, it doesn't seem to have any effect...
twitter: @alastaira blog: http://alastaira.wordpress.com/
-
2012年4月13日 上午 11:12擁有者You can easily use a RotateTransform on the map to achieve this.
http://rbrundritt.wordpress.com
-
2012年4月13日 上午 11:22版主
I wrote an article about this a few weeks ago that I meant to link to here:
http://alastaira.wordpress.com/2012/03/28/rotating-bing-maps/
Essentially, it appears that "Heading" only works to set the N, S, E, W aspect when using a birdseye (oblique) view - to rotate 2d tiles you have to use a RotateTransform (SL), or a CSS3 transform (AJAX).
twitter: @alastaira blog: http://alastaira.wordpress.com/
- 已標示為解答 Richard_BrundrittMicrosoft Employee, Owner 2012年4月13日 下午 04:35

