map.apps Bundle APIs 4.20.0
    Preparing search index...

    Interface PopupDefinition

    Encapsulates the creation and lifecycle of PopupTemplates.

    interface PopupDefinition {
        cleanupPopupTemplate(layerOrStore: Layer | Store): void;
        resolvePopupTemplate(layer: Layer): undefined | PopupTemplateDefinition;
        resolvePopupTemplateForStore(
            store: Store,
            storeProperties: Record<string, any>,
        ):
            | undefined
            | PopupTemplateDefinition
            | Promise<undefined | PopupTemplateDefinition>;
    }
    Index

    Methods

    • Hook to cleanup resources cached for a given popuptemplate or layer.

      Function is triggered by the custom popup engine if a layer is removed from the map.

      Parameters

      • layerOrStore: Layer | Store

        instance (either Layer or StoreInstance for which the popup template was created.

      Returns void