Set the max zoom to 20 to avoid over-zooming in Google maps.

This commit is contained in:
Michael Stenta 2015-07-23 01:19:46 -04:00
parent 374eda8da5
commit d81e3d09b0
2 changed files with 2 additions and 4 deletions

View File

@ -43,7 +43,7 @@ function farm_area_default_openlayers_components() {
),
'zoom' => 'auto',
'enableAnimations' => 1,
'max_zoom' => '0',
'max_zoom' => 20,
'process_once' => 1,
);
$export['farm_area_component_areas_zoom_to_source'] = $ol_component;

View File

@ -28,9 +28,7 @@ function farm_area_default_openlayers_maps() {
'rotation' => 0,
'zoom' => 4,
'minZoom' => 0,
'maxZoom' => 0,
'limit_extent' => 0,
'extent' => '-194.765625, -57.32652122521709, 21681210.199033674, 7827151.696402048',
'maxZoom' => 20,
),
'renderer' => 'canvas',
'layers' => array(