plugins/behaviors/openlayers_behavior_zoomtolayer.js | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/behaviors/openlayers_behavior_zoomtolayer.js b/plugins/behaviors/openlayers_behavior_zoomtolayer.js index 90cbcd4..3dc4ff7 100644 --- a/plugins/behaviors/openlayers_behavior_zoomtolayer.js +++ b/plugins/behaviors/openlayers_behavior_zoomtolayer.js @@ -39,6 +39,7 @@ Drupal.openlayers.addBehavior('openlayers_behavior_zoomtolayer', function (data, // Check for valid layer extent if (layerextent != null) { map.fullExtent.extend(layerextent); + map.zoomToExtent(map.fullExtent); } } }