• JMap.Event.Map.on.rotate

    This event is triggered when the map is rotating

    Parameters

    • listenerId: string

      Your listener id (must be unique for all map events)

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // When the rotation of the map change, it will display a message in the console
    JMap.Event.Map.on.rotate(
    "custom-map-rotate",
    args => console.log(`The rotation has changed (rotation="${args.bearing})")`
    )