• JMap.Event.Map.on.containerResized

    This event is triggered when the map container is resized.

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