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

@@ -123,9 +123,15 @@ ol.style.RegularShape = function(options) {
var snapToPixel = options.snapToPixel !== undefined ?
options.snapToPixel : true;
/**
* @type {boolean}
*/
var rotateWithView = options.rotateWithView !== undefined ?
options.rotateWithView : false;
goog.base(this, {
opacity: 1,
rotateWithView: false,
rotateWithView: rotateWithView,
rotation: options.rotation !== undefined ? options.rotation : 0,
scale: 1,
snapToPixel: snapToPixel