Build route pushpins with virtual earth version 5.0
With the help of virtual earth version 5.0, you are able to create driving routes having the pushpins along with route, which include driving itinerary in the pushpin bubbles. A VERoute is returned when in version 5.0 a VEMap.GetRoute call is made. The VERoute includes itinerary directions but does not include information to co-ordinate of route pushpins and no access for their infobox descriptions. In the article we will discuss about how can we manipulate these pushpins and how can we generate our own virtual earth version 5.0 route pushpins.
For manipulating route pushpins, it is significant to have a look at “_dm” object. This dm object is important part of VEMap class, which is used for handling calls from the directions.ashx handler of virtual earth. by using the _dm.RemoveRoutepins method, you can clear out all the present route pins without eliminating the route polyline and present pushpins of a map.
When we will generate the route in virtual earth version 5.0, dm.verouteeache can be populated with resulting route pushpins of route callback functions. If we observe the pushpins which are stored in the _dm.veroutecache array are the version 4.0 pushpins. You are able to export the information of version 4.0 and then you can generate your set, which include version 5.0 pushpins.
In order to design customized route pushpins you have to follow certain steps, which are as follows.
First, iterate through veroutecache in route callback and then by pulling out the information of pushpin you are to generate VEShape instance.
After this, make storage of VEShape instance in an array.
Now you must call to _dm.RemoveRoutepins
After this pull the created VEshapes from your array and then plot these VEshapes on the map.
It is very significant to know that a calling to _dm.RemoveRoutepins can delete all the route pins and it can clear the veroutecache, therefore before deleting the actual pushpins of your map you must require to observe the old route pushpin information.
The virtual earth platform includes the collection of services, which combine aerial, 3D imagery and bird’s eye with search functionality, location and mapping. The virtual earth 5.0 is provides us new tools robust platform capabilities and advanced feature enhancements. In this release of version 5.0, the virtual earth platform is very flexible which provides various kinds of supported capabilities, which permit businesses to enhance customer relationships through innovative solutions.
The virtual earth platform allows businesses for customizing distinctive locations experiences for their customers. You are able to modify the polylines, Polygons, and pushpins by using new virtual earth shape class. You can also customize, widths, colors and can add custom icons. By using find method of new shape class, you can also find out locations as well as businesses in easy and fast way.
So by using the recent features and technology of this version you can improve customer satisfaction and by using the new functionality of this version you can provide dynamic experiences, which include 3D imagery, mini maps, bird’s eye planning and interactive mapping.
Technorati Tags: Microsoft, virtual earth, live maps, using virtual earth,
Tags: Microsoft Virtual Earth
























