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'}

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

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'}

JavaScript must be enabled in order for you to use Google Maps.
However, it seems JavaScript is either disabled or not supported by your browser.
To view Google Maps, enable JavaScript by changing your browser options, and then try again.

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 intial 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 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 Sunday, 02 May 2010 13:23
 

Advertisement