class
WmsAdapter
WMS 1.1.1/1.3.0 adapter with auto-version detection and BBOX axis order handling.
Constructor
new WmsAdapter(options: WmsAdapterOptions) | Parameter | Type | Description | |
|---|---|---|---|
options | WmsAdapterOptions | required | Adapter configuration |
WmsAdapterOptions
| Field | Type | Description | |
|---|---|---|---|
url | string | required | WMS service URL |
fetchFn | typeof fetch | optional | Custom fetch function |
proxyUrl | string | optional | Proxy URL prefix |
Methods
getCapabilities()
getCapabilities(): Promise<WmsCapabilities> Fetch and parse GetCapabilities response.
Returns
Promise<WmsCapabilities> getMapUrl()
getMapUrl(params: GetMapParams): string Generate GetMap URL.
Returns
string getFeatureInfo()
getFeatureInfo(params: GetFeatureInfoParams): Promise<FeatureInfoResult> Query feature info at pixel.
Returns
Promise<FeatureInfoResult>