Click to Rate and Give Feedback
MSDN
MSDN Library
Online Services
Bing Services
Bing Maps SDKs
 Bing Map Control Performance
Collapse All/Expand All Collapse All
Bing Map Control Performance

To give end users the best possible performance, Microsoft Bing Map Control offers the following improvements.

Microsoft Content Delivery Network (CDN) support. The addition of CDN to the Bing Maps core infrastructure has improved delivery speeds of Bing Maps content up to 82%. CDN is a key pillar of Microsoft’s cloud computing strategy and is one of the primary investments the Bing Maps for Enterprise team has made to increase overall platform performance. CDN is comprised of multiple worldwide datacenters that allow Microsoft to host Bing Maps content closer to end users.

To use CDN, set the map control src reference to the CDN URL, as demonstrated in the code below.

<script charset="UTF-8" type="text/javascript" src="http://ecn.dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2&mkt=en-us"></script>

Dd807493.note(en-us,MSDN.10).gifNote:
The map control found at http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2 does not use CDN, but will remain available for backwards compatibility.

Add custom layer method. The VEMap.AddCustomLayer Method quickly adds custom data to the map.

Add bulk pushpins. The Bing Map Control allows you to bulk add pushpins to the map. The time to add these pushpins to the map is close to half the time it takes to add these pushpins using the traditional method. The code below demonstrates this feature.

// Create an array with a large number of pushpins:
var center = map.GetCenter(); 
var shapes = new Array();
for (i=0 ; i < 150; ++i)
{
   var shape = new VEShape(VEShapeType.Pushpin, new VELatLong(center.Latitude + Math.random()*20 - 10, center.Longitude + Math.random()*20 - 10));
   shapes.push(shape); 
}

// Create an empty shape layer and add it to the map:
var shapeLayer = new VEShapeLayer();
map.AddShapeLayer(shapeLayer);

// Add the array of pushpins to the shape layer:
shapeLayer.AddShape(shapes);

Route rendering optimization. The Bing Map Control contains logic to optimize by zoom level the number of route points needed to display a route on the map. When the map is zoomed out, the route is rendered with fewer points.

Dd807493.Tip(en-us,MSDN.10).gifTip:
In addition to the map control performance features above, you can further improve the performance of your web page by following tips in the Performance and Load Testing in Virtual Earth article in the Virtual Earth Articles.

© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker