From 773e803b1cf01e87c2d0a02c67d9f3895f911bb5 Mon Sep 17 00:00:00 2001 From: jokd Date: Fri, 20 Oct 2023 11:15:52 +0200 Subject: [PATCH] Adds zoomToExtent option for draw layers --- src/controls/draw/drawhandler.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controls/draw/drawhandler.js b/src/controls/draw/drawhandler.js index 8b8a8b967..682cf6838 100644 --- a/src/controls/draw/drawhandler.js +++ b/src/controls/draw/drawhandler.js @@ -387,6 +387,7 @@ const DrawHandler = function DrawHandler(options = {}) { queryable, removable, exportable, + zoomToExtent = true, drawlayer } = layerOptions; let newLayer; @@ -408,6 +409,7 @@ const DrawHandler = function DrawHandler(options = {}) { queryable, removable, exportable, + zoomToExtent, drawlayer, type: 'GEOJSON', attributes: [