silverlight bing mapcontrol setview inconsistent results
-
2012年2月28日 4:33
silverlight 5 navigation app, creating a location rect from a list of locations as parameter for set view, leave the page, return, pass same list of locations as a location rect
the resulting viewport is not the same generally, zoom level is minus one.
Have tried, storing the resulting center and zoom level after passing in the rectangle, and recalling setview with center and zoom, its not working, more or less the exact same problem, have only left to try storing the resulting bounding rectangle after the first call to set view and re - using it,
but shouldnt have to do this. Of course totally avoiding databind zoom level and center.
I realize there is alot of calculation involved. Are there some setting I should have, does the map need to be in a certain ratio of height and width? Do I need to set a height and width?
Athena Capsis
- 已编辑 acapsis 2012年3月3日 21:10
- 已移动 Richard_BrundrittMicrosoft Employee, Owner 2012年3月16日 18:37 (From:Bing Maps: Map Control and Web services Development)
全部回复
-
2012年3月3日 21:09
was able to solve the problem of returning to the same view... calculated by setview
using the view_changeEnd event to capture the center and zoom level arrived at by prior call to setview with my location list generated location rect.Having captured the center and zoom level, was able to achieve the same map envelope by setting the center and then the zoom level ( rather than using set view again)
Athena Capsis

