Project

General

Profile

« Previous | Next » 

Revision cdb6af36

Added by Andreas Kohlbecker over 9 years ago

code cosmetics in openlayers_map.js and more robust handling of map width

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.page.theme
365 365
    $occurrenceQuery = cdm_ws_get(CDM_WS_GEOSERVICE_OCCURRENCEMAP, $taxon->uuid);
366 366

  
367 367
    if( isset($occurrenceQuery->String) ) {
368
      // os=&od=&legend=0&recalculate=false&image=false
369 368
      $occurrenceQuery = $occurrenceQuery->String;
370 369

  
371 370
      $legendFormatQueryStr = null;
372 371
      if (variable_get('cdm_dataportal_map_openlayers', 1)) {
373
        $out .= get_openlayers_map(variable_get('cdm_dataportal_geoservice_display_width', FALSE), variable_get('cdm_dataportal_geoservice_bounding_box', FALSE), $occurrenceQuery, NULL,
372
        $out .= get_openlayers_map(variable_get('cdm_dataportal_geoservice_display_width', 680), variable_get('cdm_dataportal_geoservice_bounding_box', FALSE), $occurrenceQuery, NULL,
374 373
            $legendFormatQueryStr, variable_get('cdm_dataportal_geoservice_map_caption', ''));
375 374
      }
376 375
      else {
377 376
        // get_image_map($width, $occurrenceQuery = FALSE, $distributionQuery = FALSE, $legendFormatQuery = FALSE, $map_caption = FALSE )
378
        $out .= get_image_map(variable_get('cdm_dataportal_geoservice_display_width', FALSE), variable_get('cdm_dataportal_geoservice_bounding_box', FALSE), $occurrenceQuery, NULL,
377
        $out .= get_image_map(variable_get('cdm_dataportal_geoservice_display_width', 680), variable_get('cdm_dataportal_geoservice_bounding_box', FALSE), $occurrenceQuery, NULL,
379 378
            $legendFormatQueryStr, variable_get('cdm_dataportal_geoservice_map_caption', ''));
380 379
      }
381 380
    }

Also available in: Unified diff