Revision 961319fe
Added by Andreas Kohlbecker over 4 years ago
modules/cdm_dataportal/includes/maps.inc | ||
---|---|---|
538 | 538 |
return $out; |
539 | 539 |
} |
540 | 540 |
|
541 |
/** |
|
542 |
* @param $taxon |
|
543 |
* @return array |
|
544 |
*/ |
|
545 |
function occurrence_map_query_parameters($taxon) |
|
546 |
{ |
|
547 |
$map_render_array = array(); |
|
548 |
$occurrence_queryDto = cdm_ws_get(CDM_WS_GEOSERVICE_OCCURRENCEMAP, $taxon->uuid, http_build_query(relationship_filter_query_parameters())); |
|
549 |
|
|
550 |
$map_visibility = variable_get(SPECIMEN_MAP_VISIBILITY, SPECIMEN_MAP_VISIBILITY_DEFAULT); |
|
551 |
if ($map_visibility == 'always' || |
|
552 |
variable_get(SPECIMEN_MAP_VISIBILITY, SPECIMEN_MAP_VISIBILITY_DEFAULT) == 'automatic' && |
|
553 |
(isset($occurrence_queryDto->fieldUnitPoints[0]) || isset($occurrence_queryDto->derivedUnitPoints[0]))) { |
|
554 |
$occurrence_query = $occurrence_queryDto->occurrenceQuery; |
|
555 |
$legend_format_query = null; |
|
556 |
$distribution_query = NULL; |
|
557 |
$map_render_array = compose_map('specimens', $occurrence_query, $distribution_query, $legend_format_query, array()); |
|
558 |
} |
|
559 |
return $map_render_array; |
|
560 |
} |
|
561 |
|
|
541 | 562 |
|
Also available in: Unified diff
ref #8406 clenaing and harmonization of the specimen related code in the dataportal