Set the max zoom to 20 to avoid over-zooming in Google maps.
This commit is contained in:
parent
374eda8da5
commit
d81e3d09b0
|
@ -43,7 +43,7 @@ function farm_area_default_openlayers_components() {
|
||||||
),
|
),
|
||||||
'zoom' => 'auto',
|
'zoom' => 'auto',
|
||||||
'enableAnimations' => 1,
|
'enableAnimations' => 1,
|
||||||
'max_zoom' => '0',
|
'max_zoom' => 20,
|
||||||
'process_once' => 1,
|
'process_once' => 1,
|
||||||
);
|
);
|
||||||
$export['farm_area_component_areas_zoom_to_source'] = $ol_component;
|
$export['farm_area_component_areas_zoom_to_source'] = $ol_component;
|
||||||
|
|
|
@ -28,9 +28,7 @@ function farm_area_default_openlayers_maps() {
|
||||||
'rotation' => 0,
|
'rotation' => 0,
|
||||||
'zoom' => 4,
|
'zoom' => 4,
|
||||||
'minZoom' => 0,
|
'minZoom' => 0,
|
||||||
'maxZoom' => 0,
|
'maxZoom' => 20,
|
||||||
'limit_extent' => 0,
|
|
||||||
'extent' => '-194.765625, -57.32652122521709, 21681210.199033674, 7827151.696402048',
|
|
||||||
),
|
),
|
||||||
'renderer' => 'canvas',
|
'renderer' => 'canvas',
|
||||||
'layers' => array(
|
'layers' => array(
|
||||||
|
|
Loading…
Reference in New Issue