view.getRotation default value already set to 0.

This commit is contained in:
Frederic Junod
2013-02-12 15:37:08 +01:00
parent 0c09083eb8
commit f4e9dd5c37
2 changed files with 2 additions and 2 deletions

View File

@@ -67,7 +67,7 @@ ol.interaction.DragRotate.prototype.handleDragStart =
var theta = Math.atan2(
size.height / 2 - offset.y,
offset.x - size.width / 2);
this.startRotation_ = (view.getRotation() || 0) + theta;
this.startRotation_ = view.getRotation() + theta;
return true;
} else {
return false;