Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

Overview

Properties

Optional backgroundColor

backgroundColor: string

A string that represents the required background color (BGCOLOR) when images are requested from the server (only applicable when transparent is false). The color format is "0xRRGGBB", where RGB values are represented as hexadecimal numbers. If a string is passed that does not adhere to this format an exception will be thrown.

Optional bounds

bounds: Bounds

The preferred extent of the WMS model. If not defined, the bounds are automatically determined based on the layer bounds information available in the WMS capabilities. If defined, it has two purposes:

  1. it defines the extent for which data should be loaded.
  2. the reference of this bounds is the reference which will be used to request images from the server. By convention, this model's reference is equal to the reference of this bounds parameter. It is also important to ensure that the reference of this bounds is supported by the WMS server. If you specify bounds you must not specify reference.

Optional credentials

credentials: boolean

Whether credentials should be included with every HTTP request.

Optional dimensions

dimensions: any

Dimension parameters to send along with WMS GetMap and GetFeatureInfo requests. Typical dimensions are TIME and ELEVATION. The object literal can contain simple key/value pairs. Accepted values are strings, numbers, booleans. Values must not be URL-encoded.

default

null

Optional getMapRoot

getMapRoot: string

Root URI of the getMap request interface. If this is not specified, a model will be created with the GetMap URI as specified in the capabilities object.

since

2021.0.04

Optional imageFormat

imageFormat: string

The image format of the images to retrieve from the WMS server.

default

"image/png"

Optional infoFormat

infoFormat: string

The format to retrieve feature information (through GetFeatureInfo requests) from the WMS server.

default

"application/json"

Optional reference

The spatial reference in which this model is defined. If you specify bounds, you can omit this parameter. If this parameter and bounds are both not defined, WGS 84 is used as default reference.

Optional requestHeaders

requestHeaders: {} | null

An object literal that represents headers (as a key-value map) to send with each HTTP request. If set (and not empty), an XHR with the specified headers will be performed instead of creating an Image.

Optional requestParameters

requestParameters: any

Custom request parameters to send along with WMS GetMap and GetFeatureInfo request. The object literal can contain simple key/value pairs (strings, numbers, booleans). Values must not be URL-encoded.

Optional sld

sld: string

A URL to a Styled Layer Descriptor (SLD) that must be used to make a request. This parameter conflicts with sldBody, only one of these two parameters can be used at construction time.

Optional sldBody

sldBody: string

A Styled Layer Descriptor (SLD) XML Document that must be used to make a request. The value must not be URL-encoded. This parameter conflicts with the sld parameter. Only one of these two parameters can be used at construction time.

Optional swapAxes

swapAxes: string[]

Indicates whether this model should swap the axis ordering of coordinates for the specified reference identifiers in WMS requests. If undefined, the axis ordering dictated by the model reference is respected. For each specified reference, the order will be reversed. This is needed to get an EPSG:4326 BBOX value that is encoded in longitude-latitude order instead of latitude-longitude, for example.

Optional transparent

transparent: boolean

Indicates if the images should be generated with transparency or not.

default

true

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method