API Documentation

Provides an API to create custom store instances.

Example

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

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

Example

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"
});
}
}

Index

Interfaces

Generated using TypeDoc