Create index.jsp page with Virtual Earth
To build the UI you must create the index.jsp page. By utilizing your favorite text editor, creating a new index.jsp page is possible. This page includes the code that needs to create, manage as well as manipulate the Virtual Earth map. Now let us have a look at the process of adding Virtual earth map control in index.jsp page. This wonderful map control can also display a virtual earth map on the web page just with utilizing DIV tag. For adding the Virtual Earth map control in index.jsp page you have to follow some steps that we will discuss now.
The first step is you should open index.jsp and after that you should change the Meta element to utilize UTF-8 encoding. Now you must insert a script in the map control in header section. The file mapcontrol.js can download the required virtual earth map interaction files. Next step is designing a new script block and instantiating virtual earth map object. Now implement the LoadMap () function for downloading the virtual earth map for client. The next step is designing a DIV element in body including the map. You have to utilize the DI tag’s height as well as width attributes to define the map’s size.
Another option you will find o define the size of the map just with leaving the width and height values completely blank and utilizing the default 600px width as well as the height of 400px. In order to set the position of the map, you must define the left, top as well as position attributes. When you will make all these changes, just by saving a page you can even produce a web application around it. Virtual Earth map consists of several features without the requirement of code verification.
Now let us have a look at the virtual earth map features. Virtual Earth maps offer you navigation tool. With the help of this navigation tool you can zoom as well as pan. It also makes person able to switch vies from road to aerial. It can even provide you the user ability to zoom and pan the maps with utilizing our mouse. Virtual Earth Program loads the maps with utilizing toad images style by default and it also displays the view of US.
You can even customize Virtual Earth map on the initial load to display map style, zoom level and a specific location just by overloading the LoadMap() function. Virtual Earth map with a base on screen, you must design the form that lets users for communicating with the application. New features are added in new versions of Virtual Earth program. Those features are GetDirections- For several route mapping and Geocoding to obtain exact and recent information and the trtaffic overlay- to get the information about the flow of the traffic. Virtual Earth 5 includes many features that are advanced and interesting. If you have previous version, then without doubt you are able to update from it just by changing the ‘ashx’ link.Technorati Tags: Microsoft, virtual earth, using virtual earth, features of virtual earth,
Tags: Microsoft Virtual Earth
























