• JMap.Map.setPitch

    Set the pitch on the map

    Parameters

    • pitch: number

      te new value of the pitch between 0 to 60

    Returns void

    Throws

    Error if the pitch is not between 0 to 60 degree

    Example

    // Set 30 degrees pitch
    JMap.Map.setPitch(30)