KML Layers
Updated: May 22, 2007
Views: 14789
Description: This tutorial will show you how to add KML overlays with addKMLLayer(path:String).
| Download source files |
KML is a file format used to display geographic data in an Earth browser, such as Google Earth, Google Maps, Google Maps for mobile and now the GMap flash component. KML uses a tag-based structure with nested elements and attributes and is based on the XML standard. Learn more about KML here.
KML functionality to allows us to display dynamically generated vector overlays with real time updates. The coolest thing is that KML overlays can be created with My Maps and loaded into flash.
Olympic Host Cities ( original My Maps example )
| |
Code used in the example above.
gMap.addKMLLayer({path:"http://www.afcomponents.com/components/g_map/Olympic_Host_Cities.kml"});
Monster Sightings ( original My Maps example )
| |
Code used in the example above.
gMap.addKMLLayer({path:"http://www.afcomponents.com/components/g_map/Monster_Sightings.kml"});
Other Tutorials
