Project

General

Profile

« Previous | Next » 

Revision 46de7f4c

Added by Andreas Kohlbecker almost 7 years ago

fix #6608 removing to narrow default and allowing to define the maxZoom level per admin settings

View differences:

modules/cdm_dataportal/settings.php
488 488
  // 'height' => 512 / 2, // optimum size for OSM layers 256
489 489
  'aspect_ratio' => 2,
490 490
  'bbox' => '', // empty to allow automatic zooming to extend
491
  'maxZoom' => 15, // corresponds to the default in cdm_openlayers_map.defaults
491 492
  'show_labels' => FALSE,
492 493
  'caption' => '',
493 494
  'distribution_opacity' => '0.5',
......
2844 2845
      below the map from where you can copy the bbox string.</p>'),
2845 2846
  );
2846 2847

  
2848
  $form[CDM_MAP_DISTRIBUTION]['maxZoom'] = array(
2849
    '#type' => 'select',
2850
    '#title' => 'Max zoom level',
2851
    '#default_value' => $map_distribution['maxZoom'],
2852
    '#options' => array(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
2853
  );
2854

  
2847 2855
  $form[CDM_MAP_DISTRIBUTION]['show_labels'] = array(
2848 2856
    '#type' => 'checkbox',
2849 2857
    '#title' => 'Display area labels',

Also available in: Unified diff