Changeset 109 for ATGoogleMaps
- Timestamp:
- 08/23/06 01:03:07 (5 years ago)
- Location:
- ATGoogleMaps/trunk/skins/googlemaps
- Files:
-
- 1 added
- 4 edited
-
gmap.kml.pt (modified) (2 diffs)
-
gmap.py (modified) (1 diff)
-
gmap_view.pt (modified) (3 diffs)
-
gmarker_view.pt (modified) (1 diff)
-
kml_description.pt (added)
Legend:
- Unmodified
- Added
- Removed
-
ATGoogleMaps/trunk/skins/googlemaps/gmap.kml.pt
r104 r109 2 2 <kml xmlns="http://earth.google.com/kml/2.0" 3 3 xmlns:tal="http://xml.zope.org/namespaces/tal"> 4 <tal:dummy tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'application/vnd.google-earth.kml +xml;; charset=utf-8')" />4 <tal:dummy tal:define="dummy python:request.RESPONSE.setHeader('Content-Type', 'application/vnd.google-earth.kml;; charset=utf-8')" /> 5 5 <Document> 6 6 <name tal:content="here/pretty_title_or_id">Document title</name> … … 10 10 <latitude tal:content="here/center/latitude">35.73</latitude> 11 11 </LookAt> 12 <Placemark tal:repeat=" markerpython:here.objectValues('GMarker')">13 <name tal:content=" marker/pretty_title_or_id">Marker title</name>14 <description tal:content=" marker/description">Description</description>12 <Placemark tal:repeat="here python:here.objectValues('GMarker')"> 13 <name tal:content="here/pretty_title_or_id">Marker title</name> 14 <description tal:content="here/kml_description">Description</description> 15 15 <Point> 16 <coordinates tal:content="string:${ marker/point/longitude},${marker/point/latitude}">139.71,35.73</coordinates>16 <coordinates tal:content="string:${here/point/longitude},${here/point/latitude}">139.71,35.73</coordinates> 17 17 </Point> 18 18 </Placemark> -
ATGoogleMaps/trunk/skins/googlemaps/gmap.py
r101 r109 17 17 longitude = marker.point['longitude'] 18 18 print " var tabs = [" 19 print " new GInfoWindowTab('%s', document.getElementById('marker_html_%s').innerHTML)" % (marker.tab1 , marker.id)19 print " new GInfoWindowTab('%s', document.getElementById('marker_html_%s').innerHTML)" % (marker.tab1 , marker.id) 20 20 if marker.detail: 21 21 print " ,new GInfoWindowTab('%s', document.getElementById('detail_html_%s').innerHTML)" % (marker.tab2, marker.id) -
ATGoogleMaps/trunk/skins/googlemaps/gmap_view.pt
r108 r109 37 37 <!-- gmarker --> 38 38 <ul tal:define="markers python: here.objectValues(['GMarker'])"> 39 <tal:gmarker tal:repeat="here markers"> 40 <li id="" 41 tal:condition="here/point | nothing" 42 tal:attributes="id string:marker_link_${here/id}"> 43 <a href="javascript:void(0)" onclick="this.blur()" tal:content="here/pretty_title_or_id"> 44 Gmarker title 45 </a> 39 <tal:gmarker tal:repeat="here markers"> 40 <li id="" 41 tal:condition="here/point | nothing" 42 tal:attributes="id string:marker_link_${here/id}"> 43 <a href="javascript:void(0)" onclick="this.blur()" tal:content="here/pretty_title_or_id"> 44 Gmarker title 45 </a> 46 </li> 46 47 <!-- info window --> 47 48 <div id="" style="display: none;" 48 49 tal:attributes="id string:marker_html_${here/id}"> 49 50 <div style="width: 290px;"> 51 <div class="documentActions"> 52 <a href="" tal:condition="here/url" 53 tal:attributes="href here/url" 54 i18n:translate="" i18n:domain="plone"> 55 Link 56 </a> 57 </div> 58 50 59 <h1 class="documentFirstHeading"> 51 60 <a href="" tal:content="here/pretty_title_or_id" … … 77 86 tal:condition="here/detail"> 78 87 <div style="width: 290px;"> 88 <div class="documentActions"> 89 <a href="" tal:condition="here/url" 90 tal:attributes="href here/url" 91 i18n:translate="" i18n:domain="plone"> 92 Link 93 </a> 94 </div> 95 79 96 <h1 class="documentFirstHeading"> 80 97 <a href="" tal:content="here/pretty_title_or_id" … … 88 105 </div> 89 106 </div> 90 </li> 91 </tal:gmarker> 107 </tal:gmarker> 92 108 </ul> 93 109 -
ATGoogleMaps/trunk/skins/googlemaps/gmarker_view.pt
r108 r109 61 61 </div> 62 62 63 <ul> 64 <li tal:condition="here/address"> 65 <label i18n:translate="label_address">Address</label> 66 <span tal:replace="here/address" /> 67 </li> 63 <div tal:condition="here/address"> 64 <label i18n:translate="label_address">Address</label> 65 <span tal:replace="here/address" /> 66 </div> 68 67 69 <li tal:condition="here/phone"> 70 <label i18n:translate="label_phone">Phone</label> 71 <span tal:replace="here/phone" /> 72 </li> 68 <div tal:condition="here/phone"> 69 <label i18n:translate="label_phone">Phone</label> 70 <span tal:replace="here/phone" /> 71 </div> 72 </metal:gmarker_macro> 73 73 74 <li tal:condition="here/url"> 75 <label i18n:translate="URL">URL</label> 76 <a href="" 77 tal:content="here/url" 78 tal:attributes="href here/url"> 79 Link 80 </a> 81 </li> 82 </ul> 83 </metal:gmarker_macro> 74 <div tal:condition="here/url"> 75 <label i18n:translate="URL">URL</label> 76 <a href="" 77 tal:content="here/url" 78 tal:attributes="href here/url"> 79 Link 80 </a> 81 </div> 84 82 85 83 <br style="clear: both;"/>
Note: See TracChangeset
for help on using the changeset viewer.
