Zh GoogleMap GeoRSSandKML: Difference between revisions

From Documentation
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 4: Line 4:




Now we will add KML (GeoRSS) Layer to our map.


For demo examples we will use links from Google Maps API
For demo examples we will use links from Google Maps API
Line 41: Line 42:


[[File:GM-Tutorial-KML-Result.JPG]]
[[File:GM-Tutorial-KML-Result.JPG]]
=== More than one KML Layer in Map ===
In some cases it is need to use more than one KML layer in map.
In this situation you should use paths "feature", ie if you go to '''Paths''' tab, and try to create new paths (or check exists), you can notice, that '''Path''' field is not required.
Therefore you can enter field '''KML Layer''' as you want, and it caused to showing KML Layer in map (if you publish this path on your map).
Addition field '''KML Layer Show Type''' is needed to set what you expect to show KML layer on map - if map zoom will be changed  show all layer objects, or stay as is set on map details





Revision as of 12:57, 22 December 2011

Creating Map with GeoRSS or KML Layers


Now we will add KML (GeoRSS) Layer to our map.

For demo examples we will use links from Google Maps API Google Maps JavaScript API v3

Go to map details.


GeoRSS Layer

Set KML Layer field to value http://api.flickr.com/services/feeds/geo/?g=322338@N20&lang=en-us&format=feed-georss

Save changes.

Out map will be like


KML Layer

Now to show KML layer change KML Layer field to value http://gmaps-samples.googlecode.com/svn/trunk/ggeoxml/cta.kml


And map now is



More than one KML Layer in Map

In some cases it is need to use more than one KML layer in map.

In this situation you should use paths "feature", ie if you go to Paths tab, and try to create new paths (or check exists), you can notice, that Path field is not required.

Therefore you can enter field KML Layer as you want, and it caused to showing KML Layer in map (if you publish this path on your map).

Addition field KML Layer Show Type is needed to set what you expect to show KML layer on map - if map zoom will be changed show all layer objects, or stay as is set on map details



External Links

KML Reference

GeoRSS