Changeset 109 for ATGoogleMaps


Ignore:
Timestamp:
08/23/06 01:03:07 (5 years ago)
Author:
takanori
Message:

表示形式を修正、kml の表示をサポート

Location:
ATGoogleMaps/trunk/skins/googlemaps
Files:
1 added
4 edited

Legend:

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

    r104 r109  
    22<kml xmlns="http://earth.google.com/kml/2.0" 
    33     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')" /> 
    55<Document> 
    66  <name tal:content="here/pretty_title_or_id">Document title</name> 
     
    1010    <latitude tal:content="here/center/latitude">35.73</latitude> 
    1111  </LookAt> 
    12   <Placemark tal:repeat="marker python: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> 
    1515    <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> 
    1717    </Point> 
    1818  </Placemark> 
  • ATGoogleMaps/trunk/skins/googlemaps/gmap.py

    r101 r109  
    1717        longitude = marker.point['longitude'] 
    1818        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) 
    2020        if marker.detail: 
    2121            print "          ,new GInfoWindowTab('%s', document.getElementById('detail_html_%s').innerHTML)" % (marker.tab2, marker.id) 
  • ATGoogleMaps/trunk/skins/googlemaps/gmap_view.pt

    r108 r109  
    3737    <!-- gmarker --> 
    3838    <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> 
    4647        <!-- info window --> 
    4748        <div id="" style="display: none;" 
    4849             tal:attributes="id string:marker_html_${here/id}"> 
    4950          <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 
    5059            <h1 class="documentFirstHeading"> 
    5160              <a href="" tal:content="here/pretty_title_or_id" 
     
    7786             tal:condition="here/detail"> 
    7887          <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 
    7996            <h1 class="documentFirstHeading"> 
    8097              <a href="" tal:content="here/pretty_title_or_id" 
     
    88105          </div> 
    89106        </div> 
    90       </li> 
    91     </tal:gmarker> 
     107      </tal:gmarker> 
    92108    </ul> 
    93109     
  • ATGoogleMaps/trunk/skins/googlemaps/gmarker_view.pt

    r108 r109  
    6161      </div> 
    6262 
    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> 
    6867 
    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> 
    7373 
    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> 
    8482 
    8583    <br style="clear: both;"/> 
Note: See TracChangeset for help on using the changeset viewer.