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

    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: AGSStoreFromLayerOptions | AGSStoreFromURLOptions,
        ): Promise<AGSStore>;
    }
    Index

    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>

      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.