• JMap.Map.setRotation

    Set the rotation on the map.

    Parameters

    • rotation: number

      the new degree of the rotation between -360 to 360

    Returns void

    Throws

    Error if the rotation angle is not between -360 to 360 degree

    Example

    // Set 30 degrees rotation
    JMap.Map.setRotation(30)