Class: WmsUrlBuilder

WmsUrlBuilder(serviceAddress, layerNames, styleNames, wmsVersion, timeString)

Provides a factory to create URLs for WMS Get Map requests.

Constructor

new WmsUrlBuilder(serviceAddress, layerNames, styleNames, wmsVersion, timeString)

Constructs a WMS URL builder.
Parameters:
Name Type Description
serviceAddress String The address of the WMS server.
layerNames String The comma-separated list of names of the layers to retrieve.
styleNames String The comma-separated list of names of the styles to retrieve. May be null.
wmsVersion String The version of the WMS server. May be null, in which case version 1.3.0 is assumed.
timeString String The time parameter included in GetMap requests. May be null, in which case no time parameter is included in the request.
Source:
Throws:
If the service address or layer names are null or empty.
Type
ArgumentError

Members

crs :String

The coordinate reference system to use when requesting layers.
Type:
  • String
Default Value:
  • EPSG:4326
Source:

layerNames :String

The comma-separated list of layer names to retrieve.
Type:
  • String
Source:

serviceAddress :String

The address of the WMS server.
Type:
  • String
Source:

styleNames :String

The comma-separated list of style names to retrieve.
Type:
  • String
Source:

timeString :String

The time parameter included in GetMap requests. If null, no time parameter is included in the requests.
Type:
  • String
Source:

transparent :Boolean

Indicates whether the layer should be requested with transparency.
Type:
  • Boolean
Default Value:
  • true
Source:

wmsVersion :String

The WMS version to specify when requesting resources.
Type:
  • String
Default Value:
  • 1.3.0
Source:

Methods

urlForTile(tile, imageFormat)

Creates the URL string for a WMS Get Map request.
Parameters:
Name Type Description
tile Tile The tile for which to create the URL.
imageFormat String The image format to request.
Source:
Throws:
If the specified tile or image format are null or undefined.
Type
ArgumentError