Changeset 273


Ignore:
Timestamp:
02/20/10 16:42:23 (2 years ago)
Author:
takanori
Message:

add street view to gmarker view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/gmarker_view.pt

    r270 r273  
    3737    <div style="float: right; margin: 5px;" 
    3838         tal:condition="context/point | nothing" 
    39          tal:define="server context/server | context/aq_parent/server | string:maps.google.com"> 
     39         tal:define="latlng string:${context/point/latitude},${context/point/longitude}"> 
    4040      <div id="map" style="width: 300px; height: 200px;"></div> 
    4141      <a href="" 
    42          tal:attributes="href string:http://maps.google.com?ll=${context/point/latitude},${context/point/longitude}" 
     42         tal:attributes="href string:http://maps.google.com/maps?q=${latlng}(${context/pretty_title_or_id})" 
    4343         i18n:translate="label_larger_map"> 
    4444        View larger map 
    4545      </a> 
     46 
     47      <div> 
     48        <iframe width="300" height="240" frameborder="0" scrolling="no" src="" 
     49                tal:attributes="src string:http://maps.google.com/maps/sv?cbll=${latlng}"></iframe> 
     50      </div> 
    4651    </div> 
    4752 
     
    5055         tal:attributes="src context/imageurl" /> 
    5156 
    52     <metal:gmarker_macro define-macro="gmarker"> 
    53       <div tal:condition="context/address"> 
    54         <label i18n:translate="label_address">Address</label> 
    55         <metal:field use-macro="python:context.widget('address', mode='view')"> 
    56           Address 
    57         </metal:field> 
    58       </div> 
     57    <div tal:condition="context/address"> 
     58      <label i18n:translate="label_address">Address</label> 
     59      <metal:field use-macro="python:context.widget('address', mode='view')"> 
     60        Address 
     61      </metal:field> 
     62    </div> 
    5963 
    60       <div tal:condition="context/phone"> 
    61         <label i18n:translate="label_phone">Phone</label> 
    62         <metal:field use-macro="python:context.widget('phone', mode='view')"> 
    63           Phone 
    64         </metal:field> 
    65       </div> 
    66     </metal:gmarker_macro> 
     64    <div tal:condition="context/phone"> 
     65      <label i18n:translate="label_phone">Phone</label> 
     66      <metal:field use-macro="python:context.widget('phone', mode='view')"> 
     67        Phone 
     68      </metal:field> 
     69    </div> 
    6770 
    6871    <div tal:condition="context/url"> 
    69       <label i18n:translate="URL">URL</label> 
    70       <metal:field use-macro="python:context.widget('url', mode='view')"> 
    71         Phone 
    72       </metal:field> 
    7372      <a href="" 
    74          tal:content="context/url" 
    75          tal:attributes="href context/url"> 
     73         tal:attributes="href context/url" 
     74         i18n:translate="" i18n:domain="plone"> 
    7675        Link 
    7776      </a> 
Note: See TracChangeset for help on using the changeset viewer.