Changeset 286


Ignore:
Timestamp:
03/02/10 21:22:44 (2 years ago)
Author:
takanori
Message:

add zoom parameter for latlng widget

Location:
Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/latlng_map.dtml

    r261 r286  
    66 
    77function initialize() { 
    8   var latlng = new google.maps.LatLng(&dtml-latitude;, &dtml-longitude;); 
    9   var options = { 
    10     zoom: 4, 
    11     center: latlng, 
    12     mapTypeId: google.maps.MapTypeId.ROADMAP, 
    13     mapTypeControlOptions: {style: google.maps.MapTypeControlStyle.DROPDOWN_MENU} 
    14   } 
    15   map = new google.maps.Map(document.getElementById("map_canvas"), options); 
     8  map = createMap("map_canvas", &dtml-latitude;, &dtml-longitude;, &dtml-zoom;, "ROADMAP", "DROPDOWN_MENU"); 
    169 
    1710  marker = new google.maps.Marker({ 
    18     position: latlng, 
     11    position: new google.maps.LatLng(&dtml-latitude;, &dtml-longitude;), 
    1912    map: map, 
    2013    draggable: true 
  • Products.ATGoogleMaps/trunk/Products/ATGoogleMaps/skins/ATGoogleMaps/latlng_widget.pt

    r283 r286  
    1717 
    1818      <tal:block tal:define="latitude value/latitude | string:35.7317; 
    19                              longitude value/longitude | string:139.7278;"> 
     19                             longitude value/longitude | string:139.7278; 
     20                             zoom python:test(value.has_key('latitude'), '14', '4')"> 
    2021 
    2122        <span tal:replace="structure context/latlng_map" /> 
Note: See TracChangeset for help on using the changeset viewer.