• JMap.Map.setBearing

    Set the bearing on the map.

    Parameters

    • bearing: number

      the new degree of the bearing between -360 to 360

    Returns void

    Throws

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

    Example

    // Set 30 degrees bearing
    JMap.Map.setBearing(30)