Revision 24b3a0f0
Added by Andreas Kohlbecker almost 8 years ago
modules/cdm_dataportal/cdm_dataportal.css | ||
---|---|---|
463 | 463 |
} |
464 | 464 |
|
465 | 465 |
.distribution_map_caption { |
466 |
font-size: 90%; |
|
467 |
font-style: italic; |
|
466 |
font-size: 90%; |
|
467 |
font-style: italic; |
|
468 |
margin-bottom: 0.75em; |
|
468 | 469 |
} |
469 | 470 |
|
470 | 471 |
|
modules/cdm_dataportal/includes/maps.inc | ||
---|---|---|
259 | 259 |
|
260 | 260 |
// Showing map caption. |
261 | 261 |
if ($map_caption) { |
262 |
// FIXME: replace <br> by according css style. |
|
263 |
$out .= '<div class="distribution_map_caption">' . $map_caption . '</div>' . '<br />'; |
|
264 |
$out .= '</div>'; |
|
262 |
$out .= '<div class="distribution_map_caption">' . $map_caption . '</div>'; |
|
265 | 263 |
} |
266 | 264 |
return $out; |
267 | 265 |
} |
... | ... | |
287 | 285 |
function compose_distribution_map($taxon, $query_string) { |
288 | 286 |
|
289 | 287 |
$out = ''; |
290 |
$settings = get_edit_map_service_settings(); |
|
291 | 288 |
|
292 | 289 |
$fontStyles = array( |
293 | 290 |
0 => "plane", |
... | ... | |
367 | 364 |
* @return String |
368 | 365 |
* rendered html |
369 | 366 |
*/ |
370 |
function get_image_map($width, $height= NULL, $occurrenceQuery = FALSE, $distributionQuery = FALSE, $legendFormatQuery = FALSE, $map_caption = FALSE) { |
|
367 |
function get_image_map($width, $height= NULL, $occurrenceQuery = FALSE, $distributionQuery = FALSE, |
|
368 |
$legendFormatQuery = FALSE, $map_caption = FALSE) { |
|
371 | 369 |
|
372 | 370 |
$map_settings = get_array_variable_merged(CDM_MAP_DISTRIBUTION, CDM_MAP_DISTRIBUTION_DEFAULT); |
373 | 371 |
|
... | ... | |
494 | 492 |
$out = '<img class="distribution_map" src="' . $mapUri . '" alt="Map" />'; |
495 | 493 |
// Showing map caption. |
496 | 494 |
if ($map_caption) { |
497 |
// FIXME: replace <br> by according css style. |
|
498 |
$out .= '<div class="distribution_map_caption">' . $map_caption . '</div>' . '<br />'; |
|
499 |
$out .= '</div>'; |
|
495 |
$out .= '<div class="distribution_map_caption">' . $map_caption . '</div>'; |
|
500 | 496 |
} |
501 | 497 |
|
502 | 498 |
return $out; |
Also available in: Unified diff
#5729 fixed