To give end users the best possible performance, Microsoft Bing Maps AJAX Control offers the following improvements.
Quicker Content Delivery with Advanced Network Technology
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 Platform 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>
Note: |
|---|
| 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. |
Faster Rendering of Map Details
Add custom layer method. The VEMap.AddCustomLayer Method quickly adds custom data to the map.
Add bulk pushpins. The Bing Maps AJAX 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 Maps AJAX 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.
Concepts
Displaying a Map Using JavaScript