Want to know the easy way to see the various parts of our world then here is simple solution. It is not case of booking flight or taking the guidance or help of operator. But it is case of using Virtual Earth program. Virtual Earth platform is ready to utilize fort your business needs. It will surely provide you comprehensive support for all your business requirements. It will definitely provide you convincing end user experience. Let us have a look at the information about virtual earth version 4.0-map control. JavaScript is utilized as a map control in program Virtual Earth.
Now we will talk about how you cant design a map instance. To design map instance of a virtual earth map control, you need to write little method in JavaScript on your page. This great method can design an instance of the virtual earth map and then placing of that instance on page is possible. Now set up the initial content of the control. After finishing your process of designing an instance then you must call the Load Map () method for displaying the map in HTML control. The Load map method is known without parameters in which you can receive a map, that can show you the USA, zoomed out for showing North American states.
You are also able pass in a number of parameters for customizing the starting map. There are some of the parameters that are explained as follows. We will discuss them in detail way.
VELatLong: It can represent the center of map and that is defined in MapControl.js. It is a pair of values that can indicate latitude and longitude.
Style: It can represent the map style. Not all styles are available in all districts and if a map style is not available, map can with a defaulting road style. Furthermore, when a zoom level is not there the map loads with nearest suitable value. Valid style values are ‘a’ stands for aerial, ‘h’ stands for hybrid, ‘r’ stands for road, and ‘o’ stands for oblique.
Find: it is one kind of Boolean value, can state that whether the map view is displayed or not as a fixed map, that user is not able to change. Moreover, if this value is set to false then you can see the zoom, style navigations controls and pan on the map and the user is able to utilize, drag as well drop the scroll wheel for navigating. In addition, when this value is set to true then the map navigation control is not displayed and user is not able to manipulate the map through standard controls.
Now look at how to receive events through map control. Map control provides you events, which include information of the map, which is recently displayed in the control. There is list of events which are received through control by a user. These events include on change map style, which occurs when there is change in map style. Another event is on click, which occurs when any user clicks on map. An error is another event, which occurs if the map zoom ends, and on start zoom occurs if the map zoom begins.
The ability of adding pushpin to a map permits users for indicating specific location on map control. For adding the pushpin, we have to create the function and we have to attach on click event with our map object.
Technorati Tags: Microsoft, virtual earth, virtual earth features, using virtual earth,
Permanent link to this post (579 words, estimated 2:19 mins reading time)