Add getOverlay method to access sketch and selection layers

This commit is contained in:
ahocevar
2018-08-15 10:59:38 +02:00
parent 95533e2425
commit 8ab1589f9a
6 changed files with 57 additions and 5 deletions

View File

@@ -442,4 +442,11 @@ describe('ol.interaction.Select', function() {
});
});
});
describe('#getOverlay', function() {
it('returns the feature overlay layer', function() {
const select = new Select();
expect (select.getOverlay()).to.eql(select.featureOverlay_);
});
});
});