Add rotateWithView option to ol.style.RegularShape

This commit is contained in:
Frederic Junod
2016-01-20 17:18:09 +01:00
parent 7d168cb6e2
commit aec4e468e3
3 changed files with 24 additions and 1 deletions

View File

@@ -4,6 +4,14 @@ describe('ol.style.RegularShape', function() {
describe('#constructor', function() {
it('can use rotateWithView', function() {
var style = new ol.style.RegularShape({
rotateWithView: true,
radius: 0
});
expect(style.getRotateWithView()).to.be(true);
});
it('can use radius', function() {
var style = new ol.style.RegularShape({
radius: 5,