Display KML file – old

Find the page for this feature here.

Add an clickable area with an whole in your map:

Note: The KML file has to be located on your blog domain!

You can also display a list of kml-files within one map:

A sample for an KML file with html content:

<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom">
<Document>
  <name>TEST.kml</name>
    <Style id="pushpin">
      <IconStyle>
        <scale>1</scale>
        <Icon>
          <href>http://www.YourDomain.com/wp-content/plugins/osm/icons/styria_linux.png</href>
        </Icon>
        <hotSpot x="20" y="2" xunits="pixels" yunits="pixels"/>
      </IconStyle>
    </Style>
    <Placemark>
    <name>TEST</name>
    <description><![CDATA[
      <div style="width:300px; height:200px">
        <img src="http://www.YourDomain.com/wp-content/uploads/YourPhoto.jpg"/>
      </div>
]]></description>
    <styleUrl>#pushpin</styleUrl>
    <Point><coordinates>17.130,49.977,0</coordinates></Point>
  </Placemark>
  <Placemark>
    <name>TEST</name>
    <description><!
      [CDATA[
      <div style="width:300px; height:200px">
      Das ist ein Test für KML files mit dem WP OSM Plugin.<br>
      <img src="http://www.YourDomain.com/wp-content/uploads/YourPhoto.jpg"/>
      </div> 
      ]]>
    </description>
    <styleUrl>#pushpin</styleUrl>
    <Point><coordinates>17.133,49.979,0</coordinates></Point>
  </Placemark>
  </Document>
</kml>

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.

Close