From d81e3d09b03e6ea893ad7209a070d5026975a200 Mon Sep 17 00:00:00 2001 From: Michael Stenta Date: Thu, 23 Jul 2015 01:19:46 -0400 Subject: [PATCH] Set the max zoom to 20 to avoid over-zooming in Google maps. --- farm_area.default_openlayers_components.inc | 2 +- farm_area.default_openlayers_maps.inc | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/farm_area.default_openlayers_components.inc b/farm_area.default_openlayers_components.inc index 23a716e07..7c60f8f55 100644 --- a/farm_area.default_openlayers_components.inc +++ b/farm_area.default_openlayers_components.inc @@ -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; diff --git a/farm_area.default_openlayers_maps.inc b/farm_area.default_openlayers_maps.inc index a8386a246..9ec704c91 100644 --- a/farm_area.default_openlayers_maps.inc +++ b/farm_area.default_openlayers_maps.inc @@ -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(