NextGIS Frontend
    Preparing search index...

    Interface CreatePopupContentProps<F, L>

    interface CreatePopupContentProps<F extends Feature = Feature, L = any> {
        close: () => void;
        feature: F;
        getBounds: () => LngLatBoundsArray;
        getCenter: () => LngLatArray;
        layer?: L;
        onClose: (cb: PopupOnCloseFunction) => void;
        target: LayerAdapter;
        type: OnLayerSelectType;
        visible?: boolean;
    }

    Type Parameters

    • F extends Feature = Feature
    • L = any

    Hierarchy (View Summary)

    Index

    Properties

    close: () => void

    Close the pop-up programmatically

    feature: F

    A vector layer object in geojson format.

    getBounds: () => LngLatBoundsArray

    Get the extent for the geometry on which the action was executed.

    getCenter: () => LngLatArray

    Get the center for the geometry on which the action was executed.

    layer?: L

    Native layer for a specific adapter layers of a specific map adapter.

    onClose: (cb: PopupOnCloseFunction) => void

    The callback function that is called when the popup is closed

    createPopupContent: (e) => {
    const onZoomEnd = () => e.close();
    ngwMap.emitter.on('zoomend', onZoomEnd)
    e.onClose(() => {
    ngwMap.emitter.off('zoomend', onZoomEnd)
    })
    return createContentFunc(e);
    },
    target: LayerAdapter

    The adapter in which the layer is created.

    The source of the event call. User click, hover, or programmatic api call

    visible?: boolean

    Is layer on the map