Dealing with icons in KML files for WP OpenStreetMap Plugin OSM

If you want to display individual information in your map then KML files are a good choice. There are several KML generators and it’s easy to integrate it into your WordPress Site.

Note, you must not display any icons which are protected by copyright! There icons integrated in WP OSM plugin and you should use them in your KML file with style-tag like this:

  <Style id="style1">
      <hotSpot x="16" y="0" xunits="pixels" yunits="pixels" />
    </IconStyle>   </Style>

Using this icon you simple refer to the style at the placemark-tag with styleUrl:

    <Snippet>About Primosten&amp;nbsp;Mooring in Primosten&amp;nbsp;Primosten Gallery</Snippet>
    <description><![CDATA[<a href="" target="_blank">About Primosten</a>&nbsp;<div><a href="" target="_blank">Mooring in Primosten</a>&nbsp;</div><div><a href="" target="_blank">Primosten Gallery</a></div>]]></description>

Sample looks like this:

[*osm_map_v3 map_center="43.544567,15.831299" zoom="9" width="100%" height="550" file_list="../../../../wp-content/uploads/osm_map/test route 2015.kml"]

If you miss any icons just post it to get them with the next OSM plugin version.

PS: KML-sample was taken from


Posted in Allgemein
Tags: , , ,
One comment on “Dealing with icons in KML files for WP OpenStreetMap Plugin OSM
  1. ovidiu says:

    I have created a map on google maps under “my maps”, and selected default syles, nothing custom then exported the kml file.
    Using this plugin to display the kml file works but its missing the icons.

    What are my options except editing the kml file and manually changing all icon styles?

Leave a Reply

Your email address will not be published. Required fields are marked *


By continuing to use the site, you agree to the use of cookies and load data from third parties. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.