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/map.php

    r14181 r23083  
    4848  check_restrictions($page['category']['id']);
    4949
    50 if ( !isset($_GET['ll']) and ($page['section']!='categories' or isset($page['category']) ) )
     50if ( !isset($_GET['ll']) /*and ($page['section']!='categories' or isset($page['category']) )*/ )
    5151{
    5252  $img_fields = 'MIN(i.lat) s, MIN(i.lon) w, MAX(i.lat) n, MAX(i.lon) e';
     
    6969    'CONTENT_ENCODING' => get_pwg_charset(),
    7070    'RVM_PLUGIN_VERSION' => RVM_PLUGIN_VERSION,
    71     'GMAPS_API_KEY' => $conf['gmaps_api_key'],
    7271    'PLUGIN_ROOT_URL' => get_absolute_root_url().'plugins/'.$rvm_dir,
    7372                'PLUGIN_LOCATION' => 'plugins/'.$rvm_dir,
     
    7675    'U_HOME' => make_index_url(),
    7776    'U_HOME_MAP' => rvm_make_map_index_url(),
     77                'MAP_TYPE' => rvm_get_config_var('map_type', 'ROADMAP'),
    7878  )
    7979  );
Note: See TracChangeset for help on using the changeset viewer.