Bing Maps AJAX Control SDK 7.0
Monday, 22 November 2010

The new Bing Maps Ajax control is just a third of its former size. How does it achieve this? By starting over with a new, non-compatible, design.

Banner

Microsoft has released a new version of the Bing Maps Ajax Control - V7. Its main claim to fame is that it is more efficient. It also claims to be 1/3 of the size of the previous control and up to 3 times faster.  In addition, it is able to make use of HTML5/CSS3 where these facilities are available by dynamically detecting browser capabilities and using them where possible.

bingmaps

The new API now allows access to the enhanced "Birds eye" view and the new map style introduced recently is now the default. It is also optimised for mobile use including touch support. Touch events now work without any additional effort.

The downside is that the API looks very different and it isn't backwards compatible with the previous version. It also leaves out many of the features such as the popup description associated with pushpins.Similarly many of the function calls that used the REST API are missing and you will have to write your own replacements. Layers are also missing, but the EntityCollection object does more or less the same job.

It really is a complete redesign aimed at making the Javascript control efficient by being lightweight. In place of lots of method calls, one to set each option, the API makes use of a small number of  setOptions calls, typically one per object. To allow the user to set multiple options with each setOptions method the first parameter is an options object with a whole set of properties. That is instead of methods like SetOptionA, SetOptionB and so on there is now a single SetOptions method that you call using:

SetOptions({OptionA:value;OptionB:value,...});

Converting to the new API isn't difficult but any changes are extra work. In this case the performance gain, especially for mobile devices, does seem worth the effort. More of a challenge is making up for the missing resources such as the popup infoboxes associated with pushpins. The control may be lightweight but this leaves more for the programmer to do.

Overall however the pain is worth the gain. Bing maps has finally forgotten its origins in Virtual Earth.

More information from:

http://www.microsoft.com/maps/

Bing Maps Blog

You can also download an SDK help file for V7 from:

http://www.microsoft.com/downloads

Related articles:

Getting started with Bing Maps AJAX Control 7.0

Getting Started with the Bing Maps Silverlight Control

Getting started with Bing Maps (Virtual Earth)

 

Banner


Tweet-a-Program
20/09/2014

Wolfram has invented a very nice publicity stunt. All you have to do is create a program in no more than 140 characters and tweet it to see it run.



This Year's Not-To-Miss AI Movie
24/08/2014

A new robot movie will be released soon and it provides a much deeper look at the robot future we are building for ourselves. It is worth seeing the trailer and tracking it down when it comes out.


More News

<ASIN:1593272715>

<ASIN:1430216204>

<ASIN:1847199763>

<ASIN:0470534044>

<ASIN:1847199763>

<ASIN:0596101619>

Last Updated ( Thursday, 25 August 2011 )
 
 

   
RSS feed of news items only
I Programmer News
Copyright © 2014 i-programmer.info. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.