Project

General

Profile

« Previous | Next » 

Revision 5c47f51c

Added by Andreas Kohlbecker almost 7 years ago

  • ID 5c47f51c0e90cbdf0b7e4bee3a3d308cf366d824
  • Parent c6c196ff

#6609 using openlayers 2.14-dev, solving some problems

  • test and debug modificatinos are included, needs clean up

View differences:

modules/cdm_dataportal/includes/maps.inc
156 156
      if(str_beginsWith($name, 'g')){
157 157
        if( isset($map_settings['openlayers']['google_maps_api_key']) && strlen($map_settings['openlayers']['google_maps_api_key']) == 39) {
158 158
          // google layer detected
159
          drupal_add_js("https://maps.googleapis.com/maps/api/js?key=" . $map_settings['openlayers']['google_maps_api_key'] . "&callback=initMap",
159
          //drupal_add_js("https://maps.googleapis.com/maps/api/js?key=" . $map_settings['openlayers']['google_maps_api_key'],
160 160
          //drupal_add_js("https://maps.google.com/maps/api/js?callback=initMap&key=" . $map_settings['openlayers']['google_maps_api_key'],
161
          drupal_add_js("http://maps.google.com/maps/api/js?v=3&key=" . $map_settings['openlayers']['google_maps_api_key'],
161 162
          array(
162 163
            'type' => 'external',
163 164
            'defer' => true
164 165
            ));
165 166

  
166 167
          //drupal_add_js("http://maps.google.com/maps/api/js?callback=initMap&key=" . $map_settings['openlayers']['google_maps_api_key'], 'external');
167
          //drupal_add_js("http://maps.google.com/maps/api/js?v=3&sensor=false", 'external');
168 168
        } else {
169 169
          drupal_set_message('A Google Maps layer is configured but the API key is either missing or invalid. 
170 170
          Please set your Google Maps API key in the '  . l('Geo & Map Settings', 'admin/config/cdm_dataportal/settings/geo') .'.', 'warning');

Also available in: Unified diff