• JMap.Event.Map.on.mapLoad

    This event is triggered when the map is created and ready.

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a map is created and ready, will display a message in the console
    JMap.Event.Map.on.mapLoad(
    "custom-map-load",
    args => {
    console.log(`The map is ready, map instance = `, args.map)
    }
    )