• JMap.Event.Map.on.zoomStart

    This event is triggered when zoom 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 map zoom start, it will display a message in the console
    JMap.Event.Map.on.zoomStart(
    "custom-map-zoom-start",
    args => console.log(`The zoom is starting (zoom="${args.zoom}")`)
    )