• JMap.Event.Map.on.rotateStart

    This event is triggered when rotation on the map start.

    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 start, it will display a message in the console
    JMap.Event.Map.on.rotateStart(
    "custom-map-rotate-start",
    args => console.log(`The rotation is starting (rotation="${args.bearing})")`
    )