Class WMSFeatureProvider

An abstract class providing features for Layers which cannot provide features directly, but can provide features for a given location, e.g. WmsLayer with a getFeatureInfo configuration. In this case, a feature provider can be created for this layer.

Hierarchy

Accessors

  • get className(): string
  • Returns string

Constructors

Methods

  • This method must be overwritten by any implementations. Before returning the array of features, be sure to use the getProviderFeature on each feature to ensure all properties and symbols required by the VCM architecture to handle your feature is called: (e.g. return features.map(f => this.getProviderFeature(f));

    Parameters

    • coordinate: Coordinate
    • resolution: number
    • Optional headers: Record<string, string>

    Returns Promise<Feature<Geometry>[]>

Properties

[moduleIdSymbol]?: string
_formatOptions: undefined | FormatOptions
_wmsSource: undefined | TileWMS

The WmsLayer Source used to generate getFeatureInfo urls

_wmsSourceOptions: WMSSourceOptions
extent: null | Extent = null
featureFormat: null | FeatureFormat

The feature response format determined by the response type. Use formatOptions to configure the underlying ol.format.Feature

featureInfoResponseType: string

The response type of the get feature info response, e.g. text/xml

isDestroyed: boolean
layerName: string

The layer name of the associated layer

mapTypes: string[]

Map ClassNames Can be used to only apply this featureProvider to the specified maps

name: string

unique Name

projection: undefined | Projection

The feature response projection, if not present in the response format.

properties: Record<string, unknown>
showGeometry: boolean

Whether to show the geometry on selection.

style: undefined | StyleItem

The style set on features created by this provider

vectorProperties: VectorProperties

The vector properties assigned to features created by this provider

Generated using TypeDoc