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: [