Add setRotateWithView function to ol/style/Text

This commit is contained in:
Frederic Junod
2019-02-19 14:12:35 +01:00
parent f0a97ee460
commit 4cb9b1eeb3
2 changed files with 19 additions and 0 deletions
+9
View File
@@ -97,4 +97,13 @@ describe('ol.style.Text', function() {
});
describe('#setRotateWithView', function() {
it('sets the rotateWithView property', function() {
const textStyle = new Text();
expect(textStyle.getRotateWithView()).to.eql(undefined);
textStyle.setRotateWithView(true);
expect(textStyle.getRotateWithView()).to.eql(true);
});
});
});