Hi All,
I'm want to use the RadMap control to display around 2000 lines on the map.
In pseudo code I do the following : (from and to contains the latitude and longitudes, the Arc object is the 'line' in my database)
foreach (Arc arc in arcs)
{
MapLine line = new MapLine()
{
Point1 = new Location(from[1], from[0]),
Point2 = new Location(to[1], to[0]),
Stroke = new SolidColorBrush(Colors.Red),
StrokeThickness = 2
};
this.InformationLayer.Items.Add(line);
}
When I add more than about 200 MapLines, the performance drops dramatically. Is there anything I can do to increase this?
Help would be very appreciated!
Thanks
I'm want to use the RadMap control to display around 2000 lines on the map.
In pseudo code I do the following : (from and to contains the latitude and longitudes, the Arc object is the 'line' in my database)
foreach (Arc arc in arcs)
{
MapLine line = new MapLine()
{
Point1 = new Location(from[1], from[0]),
Point2 = new Location(to[1], to[0]),
Stroke = new SolidColorBrush(Colors.Red),
StrokeThickness = 2
};
this.InformationLayer.Items.Add(line);
}
When I add more than about 200 MapLines, the performance drops dramatically. Is there anything I can do to increase this?
Help would be very appreciated!
Thanks