Ignore:
Timestamp:
03/04/10 04:44:49 (2 years ago)
Author:
takanori
Message:

use getFolderContents() method for marker lists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmap.kml.pt

    r263 r288  
    1010    <latitude tal:content="context/center/latitude">35.73</latitude> 
    1111  </LookAt> 
    12   <Placemark tal:repeat="context python:context.objectValues('GMarker')"> 
    13     <name tal:content="context/pretty_title_or_id">Marker title</name> 
    14     <description tal:content="context/kml_description">Description</description> 
    15     <Point> 
    16       <coordinates tal:content="string:${context/point/longitude},${context/point/latitude}">139.71,35.73</coordinates> 
    17     </Point> 
    18   </Placemark> 
     12  <tal:marker tal:repeat="item context/getFolderContents"> 
     13    <Placemark tal:define="marker item/getObject"> 
     14      <name tal:content="item/pretty_title_or_id">Marker title</name> 
     15      <description tal:content="item/Description">Description</description> 
     16      <Point> 
     17        <coordinates tal:content="string:${marker/point/longitude},${marker/point/latitude}">139.71,35.73</coordinates> 
     18      </Point> 
     19    </Placemark> 
     20  </tal:marker> 
    1921</Document> 
    2022</kml> 
Note: See TracChangeset for help on using the changeset viewer.