Multiple KML PDF Print E-mail
Written by Mike Reumer   
Friday, 31 October 2008 02:00

It's now possible to add multiple kml-files to the map. Google renderer has a limit of maximum 25 kml layers on one map.

With the Google renderer, you'll need to set the center of the map yourself.

{mosmap kml[0]='http://tech.reumer.net/images/florida.kml'|
kml[1]='http://tech.reumer.net/images/allservices.kml'|
centerlat='0'|centerlon='0'|zoom='1'|
kml[2]='http://tech.reumer.net/images/Countries.kml'}

With the GeoXML renderer, you don't need to set center. It will zoom automatically. Also you can sort the items inside a kml file in the sidebar (asc or desc)

{mosmap kml[0]='http://tech.reumer.net/images/florida.kml'|
kml[1]='http://tech.reumer.net/images/allservices.kml'|
centerlat='0'|centerlon='0'|zoom='1'|
kml[2]='http://tech.reumer.net/images/Countries.kml'|
kmlrenderer='geoxml'|kmlsidebar='left'|kmlsbwidth='200'|kmlsbsort='asc'}

If you configured at the configuration to use [] or both {} and [] around mosmap then you need to use () for multiple kml. So:

[mosmap kml(0)='http://tech.reumer.net/images/florida.kml'|
kml(1)='http://tech.reumer.net/images/allservices.kml'|
centerlat='0'|centerlon='0'|zoom='1'|
kml(2)='http://tech.reumer.net/images/Countries.kml'|
kmlrenderer='geoxml'|kmlsidebar='left'|kmlsbwidth='200'|kmlsbsort='asc']

Last Updated on Saturday, 26 November 2011 10:01
 

Advertisement