News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Converting Earlier VE Versions to VE6.2

Started by thiruvasagamani, Jan 24, 2009, 07:12 PM

Previous topic - Next topic

thiruvasagamani

Converting Earlier VE Versions to VE6.2

The Virtual Earth map control has gone through significant changes with each release. The current version offers more functionality than any previous release of the map control. This article covers some of the changes required to migrate from versions 2, 3, 4, and 5 of the map control to version 6.2 of the map control.
Creating a Reference to the Map Control

Each release of the Virtual Earth map control requires a slightly different <script> tag src attribute. Listing 1 through Listing 5 shows the src attributes for versions 2, 3, 4, 5, and 6.2 respectively.
Copy Code

http://dev.virtualearth.net/standard/v2/MapControl.js

Listing 1. The version 2 reference
Copy Code

http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js

Listing 2. The version 3 reference
Copy Code

http://dev.virtualearth.net/mapcontrol/v4/mapcontrol.js

Listing 3. The version 4 reference
Copy Code

http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=5

Listing 4. The version 5 reference
Copy Code

http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2

Listing 5. The version 6.2 reference

Therefore, the version 6.2 map control <script> tag must appear as shown in Listing 6.
Copy Code

<script type="text/javascript" src="http://dev.virtualearth.net/mapcontrol/mapcontrol.ashx?v=6.2"></script>

Listing 6. The full version 6.2 <script> tag
Thiruvasakamani Karnan