Improve Draw type to mode conversion
Throw error if Draw is configured with an invalid type.
This commit is contained in:
@@ -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_);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user