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/admin/admin_config.php

    r20515 r23083  
    4444
    4545  $gm_config['marker_icon'] = $_POST['marker_icon'];
     46        $gm_config['map_type'] = $_POST['map_type'];
     47
    4648  mkgetdir( dirname(rvm_get_config_file_name()) );
    4749  $fp = fopen( rvm_get_config_file_name(), 'w');
     
    6062      'NB_MARKERS' => rvm_get_config_var('nb_markers',40),
    6163      'NB_IMAGES_PER_MARKER' => rvm_get_config_var('nb_images_per_marker',20),
     64                        'MAP_TYPE' => rvm_get_config_var('map_type','ROADMAP'),
    6265    )
    6366  );
     
    8487    );
    8588}
     89
    8690$template->assign('selected_marker_icon', rvm_get_config_var('marker_icon', '') );
    8791
    88 
     92$map_types = array(
     93        "ROADMAP" => "Roadmap (Default)",
     94        "SATELLITE" => "Satellite",
     95        "HYBRID" => "Hybrid",
     96        "TERRAIN" => "Terrain",
     97);
     98$template->assign('map_types', $map_types);
    8999?>
Note: See TracChangeset for help on using the changeset viewer.