Project

General

Profile

Revision 44d445c0

ID44d445c09258f15ce6bb58c79ed7ca991a949e15
Parent b5854b72
Child bac37a8f

Added by Andreas Kohlbecker about 7 years ago

refactoring the handling of annotations, sources and name in source information. cleaner and simpler code, less complex statements and preserving at the same time existing output, except that the ticket #2288 (Cyprus: ChromosomeNumbers: formating nameInSource) has been solved

View differences:

7.x/modules/cdm_dataportal/includes/maps.inc
304 304
    /* =========== display distributions using the openlayers map viewer =========== */
305 305

  
306 306
    $legendFormatQueryStr = "format=image" . urlencode('/') . "png"
307
        . "&TRANSPARENT=TRUE"
308
            . "&WIDTH=" . $map_settings['legend']['icon_width']
309
            . "&HEIGHT=" . $map_settings['legend']['icon_height']
310
            // TODO why is the layer=topp:tdwg_level_4 parameter needed at all here??
311
    // AK: i think the tdwg_level_4 is used as place holder and will be replaced later on
312
    // => search for "tdwg_level_4" in the code
313
    . "&layer=topp" . urlencode(':') . "tdwg_level_4"
314
        . "&LEGEND_OPTIONS=forceLabels" . urlencode(':') . "on"
315
            . ";fontStyle" . urlencode(':') . $fontStyles[$map_settings['legend']['font_style']]
316
            . ";fontSize" . urlencode(':') .  $map_settings['legend']['font_size']
317
            . "&SLD=";
307
      . "&TRANSPARENT=TRUE"
308
      . "&WIDTH=" . $map_settings['legend']['icon_width']
309
      . "&HEIGHT=" . $map_settings['legend']['icon_height']
310
      // TODO why is the layer=topp:tdwg_level_4 parameter needed at all here??
311
      // AK: i think the tdwg_level_4 is used as place holder and will be replaced later on
312
      // => search for "tdwg_level_4" in the code
313
      . "&layer=topp" . urlencode(':') . "tdwg_level_4"
314
      . "&LEGEND_OPTIONS=forceLabels" . urlencode(':') . "on"
315
      . ";fontStyle" . urlencode(':') . $fontStyles[$map_settings['legend']['font_style']]
316
      . ";fontSize" . urlencode(':') .  $map_settings['legend']['font_size']
317
      . "&SLD=";
318 318

  
319 319
    $out .= get_openlayers_map(
320 320
        $map_settings['width'],

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)