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

    Module api

    Provides an API to create custom store instances.

    Use the service name agssearch.AGSStoreFactory to obtain a AGSStoreFactory reference for your component:

    "components": [
    {
    "name": "MyExampleComponent",
    "references": [
    {
    "name": "_storeFactory",
    "providing": "agssearch.AGSStoreFactory"
    }
    ]
    }
    ]

    Use the obtained AGSStoreFactory to create new store instances.

    class MyExampleComponent {
    _storeFactory: InjectedReference<AGSStoreFactory>;
    async exampleMethod() {
    const store = await this._storeFactory!.createStore({
    id: "my-new-store",
    layerId: "a-valid-layer-id"
    // or url: "https://example.com/some/FeatureServer"
    });
    }
    }

    Interfaces

    AGSStore
    AGSStoreCommonOptions
    AGSStoreFactory
    AGSStoreFromLayerOptions
    AGSStoreFromURLOptions