Improve Draw type to mode conversion

Throw error if Draw is configured with an invalid type.
This commit is contained in:
Maximilian Krög committed 2021-02-27 11:12:24 +01:00
1 parent 3cab5f3099
commit 288fd0b74c
2 files changed
+15 -17

No files matched your search

+1 -1
View File
@@ -1381,7 +1381,7 @@ describe('ol.interaction.Draw', function () {
describe('#getOverlay', function () {
it('returns the feature overlay layer', function () {
const draw = new Draw({});
const draw = new Draw({type: 'Point'});
expect(draw.getOverlay()).to.eql(draw.overlay_);
});
});