• JMap.Event.Map.on.move

    This event is triggered when the map is moving (when user or library pan the map).

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Will map is moving, will display a message in the console
    JMap.Event.Map.on.move(
    "custom-map-move",
    args => {
    console.log(`The map is moving`, args.map, args.mapEvent)
    // mapEvent is the Maplibre event
    }
    )