Project

General

Profile

« Previous | Next » 

Revision 2b83cc8b

Added by Andreas Kohlbecker over 7 years ago

fix #3226 fixing broken Google map layers

View differences:

modules/cdm_dataportal/settings.php
480 480
      'units' => NULL
481 481
    ),
482 482
    'show_layer_switcher' => TRUE,
483
    'display_outside_max_extent' => FALSE
483
    'display_outside_max_extent' => FALSE,
484
    'google_maps_api_key' => NULL,
484 485
  ),
485 486
  'legend' => array(
486 487
    'show' => TRUE,
......
2855 2856
    'mapquest_open' => "MapQuest",
2856 2857
    'mapquest_sat' => "MapQuest Sattelite",
2857 2858
//     'osmarender' => 'OpenStreetMap (Tiles@home)',
2858
//    'gmap' => 'Google Streets',
2859
//    'gsat' => 'Google Satellite',
2860
//    'ghyb' => 'Google Hybrid',
2859
    'groadmap' => 'Google Roadmap',
2860
    'gsatellite' => 'Google Satellite',
2861
    'ghybrid' => 'Google Hybrid', // TODO: is not working
2862
    'gterrain' => 'Google Terrain',
2861 2863
//     'veroad' => 'Virtual Earth Roads',
2862 2864
//     'veaer' => 'Virtual Earth Aerial',
2863 2865
//     'vehyb' => 'Virtual Earth Hybrid',
......
2875 2877
    '#description' => 'Choose the baselayer layer you prefer to use as map background in the OpenLayers dynamic mapviewer.',
2876 2878
  );
2877 2879

  
2880
  $google_maps_api_key = null;
2881
  if(isset($map_distribution['openlayers']['google_maps_api_key'])){
2882
    $google_maps_api_key = $map_distribution['openlayers']['google_maps_api_key'];
2883
  }
2884
  $form[CDM_MAP_DISTRIBUTION]['openlayers']['google_maps_api_key'] = array(
2885
    '#type' => 'textfield',
2886
    '#title' => 'Google Maps API Key',
2887
    '#default_value' => $google_maps_api_key,
2888
    '#description' => 'In order to use any of the Google map layers you need to provide 
2889
        your <a href="https://developers.google.com/maps/documentation/javascript/get-api-key">Google Maps API Key</a>. ',
2890
  );
2891

  
2878 2892
  $form[CDM_MAP_DISTRIBUTION]['openlayers']['custom_wms_base_layer'] = array(
2879 2893
      '#type' => 'fieldset',
2880 2894
      '#title' => 'Custom WMS base layer',

Also available in: Unified diff