Stick with radians
This commit is contained in:
@@ -153,8 +153,8 @@ ol.renderer.dom.Map.prototype.handleRotationChanged = function() {
|
|||||||
if (!map.isDef()) {
|
if (!map.isDef()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var rotation = map.getRotation() * 180 / Math.PI;
|
var rotation = map.getRotation();
|
||||||
this.applyTransform_('rotate(' + rotation + 'deg) scale3d(1, 1, 1)');
|
this.applyTransform_('rotate(' + rotation + 'rad) scale3d(1, 1, 1)');
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user