UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

25 lines (24 loc) 1.18 kB
import OgcApiFeaturesClient, { OgcApiFeaturesClientOptions } from './ogcapifeaturesclient'; import { HttpMethod } from './ogcapiclient'; import Feature from 'ol/Feature'; import { Geometry } from 'ol/geom'; export default class OgcApiFeaturesClientGmf extends OgcApiFeaturesClient { constructor(options: OgcApiFeaturesClientOptions); /** * POC overwrite: Client does not accept POSTing features in EPSG:2056, have to transform WGS84. */ createItem(collectionId: string, item: Feature<Geometry>): Promise<boolean>; /** * POC overwrite: method to fix the next URL */ protected getNextUrl(responseJson: any, currentUrl: string): string; /** * POC overwrite: Fixing wrong base URLs. * Compares the initial URL with the URL in the links > next section and fixes it if necessary. * This happens because QGIS Server currently doesn't know about the base URL of the GMF backend. * Example: `http://gmf-2-9-app-qgisserver:8080` instead of * `https://geomapfish-demo-2-9.camptocamp.com/mapserv_proxy/QGIS_Server` */ private fixWrongNextUrl; protected getFetchOptions(method?: HttpMethod): RequestInit; }