Project

General

Profile

« Previous | Next » 

Revision 8e2d0259

Added by Andreas Kohlbecker over 4 years ago

ref #8448 changing the map setting to use the projection conform bbox

View differences:

modules/cdm_dataportal/settings.php
3041 3041
    '#type' => 'textfield',
3042 3042
    '#title' => 'Bounding box',
3043 3043
    '#default_value' => $map_distribution['bbox'],
3044
    '#description' => t('The bounding box (left, bottom, right, top) in degree defines the area to be initially displayed in maps.
3045
      Use "-180,-90,180,90" for the whole world. Leave <strong>empty</strong>
3046
      to let the map <strong>automatically zoom</strong> to the bounds enclosing the shown data.</p>
3047
      <strong>TIP:</strong> You can use the map preview above to choose the <span class="map-extent-bbox"><strong>map extent bbox</strong> in <strong class="degree-value"">degree</strong></span> from the map.
3048
      (Maybe you need to change the map base layer to OpeLayers.)
3044
    '#description' =>
3045
      'The bounding box (left, bottom, right, top) defines the area to be initially displayed in maps. The bbox must be given in coordinates of the projection of the chosen layer. 
3046
      For the whole world use Use <code>-180,-90,180,90</code>" for EPSG:4326 layers, for Web Mercator maps Open Street Map or 
3047
      Google maps the maximum bounds of the world are <code>-27395030.933594,-13697515.466797,27395030.933594,13697515.466797</code>.
3048
      Leave <strong>empty</strong> to let the map <strong>automatically zoom</strong> to the bounds enclosing the shown data.</p>
3049
      <strong>TIP:</strong> You can use the map preview above to choose the <span class="map-extent-bbox"><strong class="layer-value">map extent bbox</strong></span> from the details information.
3049 3050
      Hold down Strg and drag with your mouse to select a bbox to zoom to. The bbox of the visible area of the map is always displayed
3050
      below the map from where you can copy the bbox string.</p>'),
3051
      below the map from where you can copy the bbox string.</p>',
3051 3052
  );
3052 3053

  
3053 3054
  $form[CDM_MAP_DISTRIBUTION]['maxZoom'] = array(

Also available in: Unified diff