Project

General

Profile

« Previous | Next » 

Revision 2bbc28c8

Added by Andreas Kohlbecker over 10 years ago

adding support for custom wms and solving some bugs

View differences:

7.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
1081 1081
  );
1082 1082

  
1083 1083
  // Query cdm server for map service uri parameters.
1084
  $map_data_parameters = cdm_ws_get(CDM_WS_GEOSERVICE_DISTRIBUTIONMAP, $taxon->uuid);
1085
  $out .= "<!-- map_data_parameters:" . print_r($map_data_parameters, TRUE) . " -->";
1086
  $query_string = $map_data_parameters->String;
1084
  $query_string = cdm_ws_get(CDM_WS_GEOSERVICE_DISTRIBUTIONMAP, $taxon->uuid);
1085
  $query_string = $query_string->String;
1086
  $out .= "<!-- map_data_parameters:" . print_r($query_string, TRUE) . " -->";
1087 1087
  if (!$query_string) {
1088 1088
    // The $query_string is empty if there are no distribution areas defined.
1089 1089
    return;
1090 1090
  }
1091 1091

  
1092
  // Some cleaning of the URI paramters, TODO is this still needed?
1093
  $query_string = str_replace('%3A', ":", $query_string);
1094

  
1095 1092
  /* ------ choose the display mode, either openlayers or static image ------ */
1096 1093

  
1097 1094
  $map_settings = get_array_variable_merged(CDM_MAP_DISTRIBUTION, CDM_MAP_DISTRIBUTION_DEFAULT);

Also available in: Unified diff