Interface AGSStoreFactory

Factory used to created new store instances.

Use service name "agssearch.AGSStoreFactory" to inject an instance of this factory.

interface AGSStoreFactory {
    createStore(options): Promise<AGSStore>;
}

Methods

Methods

  • Creates a new store instance backed by an ArcGIS Feature Server or Map Server. Either the layerId parameter or the url parameter must be specified.

    Returns Promise<AGSStore>

    Example

    const store = await this._storeFactory.createStore({
    id: "my-new-store",
    layerId: "a-valid-layer-id"
    // or url: "https://example.com/some/FeatureServer"
    });
    await store.load(); // Need to load metadata before store can be used.

Generated using TypeDoc