Provides an API to create custom store instances.
Use the service name agssearch.AGSStoreFactory to obtain a AGSStoreFactory reference for your component:
agssearch.AGSStoreFactory
"components": [ { "name": "MyExampleComponent", "references": [ { "name": "_storeFactory", "providing": "agssearch.AGSStoreFactory" } ] }] Copy
"components": [ { "name": "MyExampleComponent", "references": [ { "name": "_storeFactory", "providing": "agssearch.AGSStoreFactory" } ] }]
Use the obtained AGSStoreFactory to create new store instances.
class MyExampleComponent { async exampleMethod() { const store = await this._storeFactory.createStore({ id: "my-new-store", layerId: "a-valid-layer-id" // or url: "https://example.com/some/FeatureServer" }); }} Copy
class MyExampleComponent { async exampleMethod() { const store = await this._storeFactory.createStore({ id: "my-new-store", layerId: "a-valid-layer-id" // or url: "https://example.com/some/FeatureServer" }); }}
Generated using TypeDoc
Provides an API to create custom store instances.
Example
Use the service name
agssearch.AGSStoreFactory
to obtain a AGSStoreFactory reference for your component:Example
Use the obtained AGSStoreFactory to create new store instances.