Minor simplification
This commit is contained in:
@@ -249,7 +249,7 @@ function addInteraction() {
|
|||||||
if (value !== 'None') {
|
if (value !== 'None') {
|
||||||
drawInteraction = new Draw({
|
drawInteraction = new Draw({
|
||||||
source: drawVector.getSource(),
|
source: drawVector.getSource(),
|
||||||
type: typeSelect.value,
|
type: value,
|
||||||
});
|
});
|
||||||
drawInteraction.on('drawstart', () => {
|
drawInteraction.on('drawstart', () => {
|
||||||
drawing = true;
|
drawing = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user