<?xml version="1.0" encoding="utf-8"?>
<kml
  xmlns="http://earth.google.com/kml/2.1"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  tal:define="items context/@@geo/forKML"
  >
  <tal:b 
    condition="python:request.RESPONSE.setHeader(
		'Content-Type', 'application/vnd.google-earth.kml+xml; charset=utf-8')" 
    />

  <Document>
    <Style id="defaultStyle">
      <LineStyle>
        <color>ffff0000</color>
        <width>2</width>
      </LineStyle>
      <PolyStyle>
        <color>33ff0000</color>
      </PolyStyle>
    </Style>
    <name tal:content="context/Title">TITLE</name>
    <visibility>0</visibility>
    <open>0</open>
    <Placemark tal:repeat="item items">
      <name tal:content="item/properties/title">TITLE</name>
      <description metal:use-macro="context/kml_macros/macros/description">DESCRIPTION</description>
      <styleUrl>#defaultStyle</styleUrl>
      <span metal:use-macro="context/kml_macros/macros/geometry" />
    </Placemark>
  </Document>
</kml>

