KML Sidebar PDF Print E-mail
Written by Mike Reumer   
Saturday, 19 July 2008 23:37

It is possible to show a sidebar with a kml-file. You have to switch the kmlrenderer to GeoXML (of Lance Dyas) instead of google. You don't need to download or install geoxml,js. The plugin will add it when necessary.
You need to provide the location of the sidebar and the width when using kmlrenderer GeoXML.

{mosmap kml='http://tech.reumer.net/images/florida.kml'|kmlrenderer='geoxml'
|kmlsidebar='left'|kmlsbwidth='200'}

Also possible with an kml-file outside of your domain with included a networklink and have directions (only renderer GeoXML):

{mosmap kml='http://tech.reumer.net/images/florida.kml'
|kmlrenderer='geoxml'|kmlsidebar='left'|kmlsbwidth='200'|dir='1'|kmllinkablemarkers='1'|kmllinktarget='_blank'}

If in the sidebar the folders aren't open at initial start then you can use parameter kmlfoldersopen='1'. All folders will be open at initial start.
If you want specific folders to be open then you have to edit you kml-file. You have to add in every <folder> tag after the <name> tag the following:
<open>1</open>

Then the folder will be open at initial start.

You can check or uncheck objects by adding visibility to the document, folder or placemark:
<visibility>1</visibility>

Also you can add kmlhide='1' to the {mosmap} so all markers will not be on the map and not checked (version => 2.13b).

You can set the method for opening infowindows. You have to use parameter kmlopenmethod. This can have the values: click, dblclick, mouseover, end mousedown.

It's possible to make the markers a link. You can use the following parameters:

  • kmlclickablemarkers - Show infowindow on markers of a kml-file (0 or 1)
  • kmllinkablemarkers - Click on a marker to goto a url (0 or 1)
  • kmllinktarget - How to open a link on a marker (_self or _blank)
  • kmllinkmethod - if link on a marker in a kml-file should react on a specific method (dblclick is default)
    • click
    • dblclick
    • mouseover
    • mousedown

In the second example the markers are clickable with target a new tab/window.

Last Updated on Thursday, 17 February 2011 21:40
 

Advertisement