Stick with radians

This commit is contained in:
Tim Schaub
2012-09-29 01:37:54 +02:00
parent 50bf2f015c
commit 67bc677ecb

View File

@@ -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)');
}; };