Skip to content

Commit

Permalink
Adds zoomToExtent option for draw layers (#1864)
Browse files Browse the repository at this point in the history
  • Loading branch information
jokd authored Oct 20, 2023
1 parent 916c210 commit 861e582
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/controls/draw/drawhandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,7 @@ const DrawHandler = function DrawHandler(options = {}) {
queryable,
removable,
exportable,
zoomToExtent = true,
drawlayer
} = layerOptions;
let newLayer;
Expand All @@ -409,6 +410,7 @@ const DrawHandler = function DrawHandler(options = {}) {
queryable,
removable,
exportable,
zoomToExtent,
drawlayer,
type: 'GEOJSON',
attributes: [
Expand Down

0 comments on commit 861e582

Please sign in to comment.