• Rotate coordinate by angle. coordinate is modified in place and returned by the function.

    Example:

    var coord = [7.85, 47.983333];
    var rotateRadians = Math.PI / 2; // 90 degrees
    ol.coordinate.rotate(coord, rotateRadians);
    // coord is now [-47.983333, 7.85]

    Parameters

    • coordinate: Coordinate

      Coordinate.

    • angle: number

      Angle in radian.

    Returns Coordinate

    Coordinate.

    Api

    stable

Generated using TypeDoc