Google Maps doesn't need a developer key to use and it doesn't need the user to download a browser plugin or desktop application. Each has some advantages and disadvantages so you do need to know how to work with both. You can display the file using either Maps or Earth. There are a number of different ways of displaying a KML file and they are each worth knowing about. For example, in the previous article we discovered how to place default marker in Google Maps at a given location using Javascript: You can use it to arrange data in a format that applications such as Google Maps and Earth can understand and use to create graphical displays as the correct location on a map. Its a sort of HTML for places and geographic locations. The basic idea is that KML is a dialect of XML used to describe locations or more generally the sorts of things you might want to add to a map display. In case you are wondering why its "Keyhole" rather than "Mapping" or some other more relevant word the simple reason is that its in homage to the pioneering KH or Keyhole reconnaissance satellites. You can create almost any mapping facility you like using nothing but code but Google Maps and Google Earth support another way of doing the same job - KML or Keyhole Markup language. In the rest of this article it is assumed that you know how to set up a web page that creates a Google Maps or a Google Ear th object that a script can work wi th - see Getting started with Google Earth. In Getting started with Google Maps we looked at how to add a map into a web page using Google Maps and nothing but Javascript and a few bits of HTML that mostly didn't do anything other than set up the page. In this article we look at how KML works, how to use it in both Google Maps and Google Earth, and how to work with it in code. Of 2 KML is the way to code geographic data so that it can be displayed on a map.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |