No need to have a mutable_ flag
Instead, educate users to call setStyle.
This commit is contained in:
@@ -16,12 +16,11 @@ describe('ol.FeatureOverlay', function() {
|
||||
expect(featureOverlay.getFeatures().getLength()).to.be(1);
|
||||
});
|
||||
|
||||
it('takes a style and makes it immutable', function() {
|
||||
it('takes a style', function() {
|
||||
var style = [new ol.style.Style()];
|
||||
var featureOverlay = new ol.FeatureOverlay({
|
||||
style: [new ol.style.Style()]
|
||||
});
|
||||
style[0].setMutable(false);
|
||||
expect(featureOverlay.getStyle()).to.eql(style);
|
||||
expect(featureOverlay.getStyleFunction()()).to.eql(style);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user