Ignore:
Timestamp:
Jun 7, 2013, 6:01:12 AM (11 years ago)
Author:
rvelices
Message:

rv_gmaps:

  • admin can choose default map type (roadmap, satellite, ...)
  • auto center and zoom when viewing map for the entire gallery
  • fix kml namespace
  • attempt to fix uage with https on the photo page (need test)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/rv_gmaps/trunk/template/map.tpl

    r22180 r23083  
    4848{
    4949        var mapOptions = {
    50                 mapTypeId: google.maps.MapTypeId.ROADMAP,
     50                mapTypeId: google.maps.MapTypeId.{/literal}{$MAP_TYPE}{literal},
    5151                overviewMapControl: true,
    5252                overviewMapControlOptions: {opened: true}
     
    5656        {
    5757{/literal}
    58                 {if isset($initial_bounds)}
     58{if isset($initial_bounds)}
    5959                mapOptions.iniBounds = new google.maps.LatLngBounds( new google.maps.LatLng({$initial_bounds.s},{$initial_bounds.w}), new google.maps.LatLng({$initial_bounds.n},{$initial_bounds.e}) );
    6060                mapOptions.center = mapOptions.iniBounds.getCenter();
    61                 {else}
    62                         mapOptions.center = new google.maps.LatLng(0,0);
    63                         mapOptions.zoom = 2;
    64                 {/if}
     61{else}
     62                mapOptions.center = new google.maps.LatLng(0,0);
     63                mapOptions.zoom = 2;
     64{/if}
    6565{literal}
    6666        }
     
    176176  <div class="titlebar_links" >
    177177    <span id="dataLoadStatus"></span>
    178     <a id="aKml" href="" type="application/vnd.google-earth.kml+xml" class="gmnoprint"><img src="http://maps.google.com/mapfiles/ms/view_as_kml.png" width="16" height="16" alt="kml"> <span>KML</span></a>
    179     <a id="aLinkToThisPage" href="" class="gmnoprint"><img src="http://maps.google.com/mapfiles/bar_icon_link.gif" alt="&lt;-&gt;" width="16" height="16"> <span>{'Link to this page'|@translate}</span></a>
     178    <a id="aKml" href="" type="application/vnd.google-earth.kml+xml" class="gmnoprint"><img src="//maps.google.com/mapfiles/ms/view_as_kml.png" width="16" height="16" alt="kml"> <span>KML</span></a>
     179    <a id="aLinkToThisPage" href="" class="gmnoprint"><img src="//maps.google.com/mapfiles/bar_icon_link.gif" alt="&lt;-&gt;" width="16" height="16"> <span>{'Link to this page'|@translate}</span></a>
    180180    <a id="aBlowup" href="" onclick="return PwgDataHandler.blowupUrl(this.href);" class="gmnoprint" title="{'show all photos around this location'|@translate}">
    181181                        <img src="{$PLUGIN_ROOT_URL}/icons/pic_s.gif" alt="" title="{'show all photos around this location'|@translate}">
Note: See TracChangeset for help on using the changeset viewer.