• JMap.Event.Layer.on.thematicVisibilityChange

    This event is triggered when a layer thematic visibility changed.

    Parameters

    • listenerId: string

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

    • fn: ((params) => void)

      Your listener function

    Returns void

    Example

    // Each time a layer thematic visibility is changed this method is processed
    JMap.Event.Layer.on.thematicVisibilityChange(
    "custom-thematic-visibility-change",
    params => {
    console.log(
    `Layer id="${params.layerId}", ` +
    `thematic id="${params.thematicId}" ` +
    `visible="${params.visibility}"`
    )
    }
    )