UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

22 lines (21 loc) 1.21 kB
import { Feature } from 'ol'; import { Geometry } from 'ol/geom'; import StateManager from '../state/statemanager'; import OgcApiFeaturesClient, { OgcApiFeaturesClientOptions } from './ogcapifeaturesclient'; import OgcApiManager from './ogcapimanager'; import ServerOgcApi, { LayerOapif } from '../../models/serverogcapi'; /** * Manages interaction between the app and an OGC API Features client (Oapif). */ export default class OgcApiFeaturesManager extends OgcApiManager<OgcApiFeaturesClient, OgcApiFeaturesClientOptions> { stateManager: StateManager; get state(): import("../main").State; constructor(type: string); getClientId(server: ServerOgcApi): string; getItemTemplate(layer: LayerOapif): Promise<Record<string, string | number | null>>; getItems(layer: LayerOapif, bbox?: number[], bboxCrs?: string): Promise<Feature<Geometry>[]>; getItem(layer: LayerOapif, featureId: string): Promise<Feature<Geometry> | undefined>; createItem(layer: LayerOapif, feature: Feature<Geometry>): Promise<boolean>; updateItem(layer: LayerOapif, featureId: string, feature: Feature<Geometry>): Promise<void>; deleteItem(layer: LayerOapif, featureId: string): Promise<void>; }