class

OgcApiAdapter

OGC API - Features/Maps adapter with async iteration and collection discovery.

Constructor

new OgcApiAdapter(options: OgcApiAdapterOptions)
Parameter Type Description
options OgcApiAdapterOptions required Adapter configuration

OgcApiAdapterOptions

Field Type Description
url string required OGC API base URL
fetchFn typeof fetch optional Custom fetch function

Methods

getCollections()

getCollections(): Promise<CollectionInfo[]>

List available feature collections.

Returns Promise<CollectionInfo[]>

getItems()

getItems(collectionId: string, params?: GetItemsParams): Promise<Feature[]>

Fetch items from a collection.

Returns Promise<Feature[]>