From 32ba21173df79490046ae2326a3e31386f3eca82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johnny=20Bl=C3=A4sta?= Date: Fri, 10 Feb 2023 13:48:32 +0100 Subject: [PATCH] fix: set drawtype if other than default --- src/controls/editor/shapes.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/controls/editor/shapes.js b/src/controls/editor/shapes.js index 041c4b464..30d963ccd 100644 --- a/src/controls/editor/shapes.js +++ b/src/controls/editor/shapes.js @@ -5,6 +5,15 @@ export default (drawType) => { box: { type: 'Circle', geometryFunction: createBox() + }, + Line: { + type: 'LineString' + }, + Polygon: { + type: 'Polygon' + }, + Point: { + type: 'Point' } };