Friday, November 25, 2011

Viewing Longitude and Latitude Position in Google Map on your Personal Web


Some articles that I made earlier with the title Marking Locations in Google Maps on Your Personal Web whose content is a way of showing the location of the marker position on Google Map. In the article there is also a demo of how to see the position of longitude and latitude. Due to the article I will leave Viewing Position Longitude and Latitude in Google Map on your Personal Web, so in this article I will show you how to make it.
                                                 
Okay, without many strings attached, let us begin to make it. As the foundation of manufacture,
please read the article on the Web Google Map Showing Private because westill use the script on the article to display the folder. After you read, there are coding todisplay the folder. Copy the coding and place it on your map file. After that, copy the following code also.





GEvent.addListener(map,"click", function(overlay,latlng) {
               if (latlng) {
                   var myHtml = "Latitude & Longitude : 
" +latlng + "
zoom level : " + map.getZoom();
                   map.openInfoWindow(latlng, myHtml);
               }
           });

put the code above after this code



map.setMapType(G_SATELLITE_MAP);



For how to use it, please point the location you want to know the coordinates of latitude andlongitude using the cursor, then click on the area. Will display a dialog ballon containing the position. Good luck bagooos

demo

download

No comments:

Post a Comment

Comments