Replace subtractViewRotation with rotateWithMap

This commit is contained in:
Tom Payne
2014-02-21 11:21:20 +01:00
parent fe159aa7fa
commit 27c5ab0312
3 changed files with 25 additions and 19 deletions
+7 -1
View File
@@ -96,6 +96,12 @@ ol.style.Icon = function(opt_options) {
*/
var opacity = goog.isDef(options.opacity) ? options.opacity : 1;
/**
* @type {boolean}
*/
var rotateWithMap = goog.isDef(options.rotateWithMap) ?
options.rotateWithMap : false;
/**
* @type {number}
*/
@@ -111,7 +117,7 @@ ol.style.Icon = function(opt_options) {
rotation: rotation,
scale: scale,
snapToPixel: undefined,
subtractViewRotation: false
rotateWithMap: rotateWithMap
});
};