Wednesday, March 17, 2010 7:41 PM
We're experiencing a rendering problem with the MapPolyline class in the Silverlight map control. Using certain locations, we get rogue lines going across the map at high zoom levels. Here's one example:
var line = new MapPolyline(); line.Locations = new LocationCollection(); line.Locations.Add(new Location(39.495435, -107.151479)); line.Locations.Add(new Location(39.540724, -107.028913)); line.Locations.Add(new Location(39.550122, -106.944456)); line.Locations.Add(new Location(39.493580, -106.878538)); line.Stroke = new SolidColorBrush(Colors.Black); line.StrokeThickness = 5; mapLayer.Children.Add(line); mapControl.SetView(new Location(39.519190, -106.908389), 18);
This example assumes you have a MapLayer instance named "mapLayer" and a Map named "mapControl". Once zoomed in, the line from north west to south east is valid and based on the locations used in the line definition above. However, there is another line displayed from west to east across the map which should not be there. It looks like it's the first line segment from the definition. It should be outside the current view and not displayed, but the map control gets confused with how to render it.
Tuesday, March 23, 2010 3:27 PM
Can someone from the Bing Maps team confirm that they were able to reproduce this? It should be fairly quick with the code provided above.
Tuesday, March 23, 2010 3:34 PM
I'm not associated w/ the Bing Maps team, but I was able to see the issue...the west to east line only shows when zoom all the way down.
Saturday, March 27, 2010 10:28 AMOwnerI've seen this issue before. Similarly I found that at some zoom levels polygons will invert themselves. I've reported this issue to MSFT and they created a bug ticket for it.
Windows Live Developer MVP - http://rbrundritt.spaces.live.com
- Marked As Answer by Anthony MacKinnon [troo] Monday, March 29, 2010 4:53 PM
Monday, March 29, 2010 4:51 PMGreat, thanks Richard.
Saturday, May 07, 2011 7:03 PM
As I understand it, this problems seems the same I have with the Bing Maps silverlight control on wp7.
In few words, when I draw a polyline all around the world, in a high zoom level I see the points connected wrong with a horizontal line crossing all the planet.
I posted all the details here:
Any news about this issue? This thread is more than 1 year old...
Sunday, May 08, 2011 1:22 AMThanks Marco, i would try to followup on this issue with team and see if it can be fixed.
Friday, September 07, 2012 2:33 PM
Richard, do you have an update or a link to the bug ticket? This bug (particularly the polygon inverting itself) is really annoying...
Friday, September 07, 2012 5:07 PMOwner
There is no public link to the bug ticket for this issue. If you are an Enterprise Customer you can contact the Bing Maps Enterprise support team who will be able to provide you with the bug id and a status update.