creating JSp web application byusing virtual earth
In order to build the UI we have to create the index.jsp page. By making use of your favorite text editor, you can create a new index.jsp page. This index.jsp page consists of the code, which you require for creating, managing and manipulating the virtual earth map. Now we will discuss about how to add virtual earth map control in index.jsp page. The virtual earth map control displays a virtual earth map on web page by using DIV tag. in order to add the virtual earth map control in index.jsp page we have to follow certain steps which are given below.
First, you have to open index.jsp and then you must change the Meta element for using UTF-8 encoding.
After this you have to add a script in the virtual earth map control in the header section. The file called mapcontrol.js downloads the needed virtual earth map interaction files.
Now design a new script block and then instantiate the virtual earth map object.
After this execute the LoadMap () function for downloading the virtual earth map for the client.
Now design a DIV element in the body for containing the map. You should make use of DI tag’s height and width attributes for defining the size of the map. There is another option for defining the map size, by leaving the width and height values fully blank and using the default width of 600px and default height of 400px. For setting the map’s position, you have to define the top, position and left attributes.
When you made these changes, after that by saving a page you are able to produce a web application around it. The virtual earth map contains numerous features without the need of any code notification. The features of virtual earth map are given below
Virtual earth map provides a navigation tool through which users can zoom and pan. Virtual earth map also makes person able to switch views from road to aerial to oblique. Virtual earth map also provides the user ability to pan and zoom the map by using our mouse.
Virtual earth by default loads the map by using road imagery style and then virtual earth displays the view of the US. You are able to customize the virtual earth map on initial load for displaying map style, a particular location and zoom level with overloading the LoadMap() function. With a base virtual earth map on the screen, you have to design one form, which allows users to communication with the application.
Technorati Tags: Microsoft, virtual earth, features of virtual earth,
Tags: Microsoft Virtual Earth
























