• JMap.Event.Map.on.containerReady

    This event is triggered when the map container is ready to use.

    Triggered just before the first time the map is created, when JMap Cloud NG Core check if the map container exist or not (and create it if needed).

    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 container is ready, will display a message in the console
    JMap.Event.Map.on.containerReady(
    "custom-map-container-ready",
    params => console.log("Map container ready", params)
    )