setConfiguration

fun setConfiguration(sector: Sector, metersPerPixel: Double, config: WmsLayerConfig, ellipsoid: Ellipsoid? = null)

Specifies this Web Map Service (WMS) layer's configuration. The configuration must specify the following values: service address, WMS protocol version, layer names, coordinate reference system, sector and resolution. All other WMS configuration values may be unspecified, in which case a default value is used.

Parameters

sector

the geographic region in which to display the WMS layer

metersPerPixel

the desired resolution in meters on the specified globe

config

the WMS layer configuration values

ellipsoid

the Ellipsoid to take equatorial radius

Throws

If the resolution is not positive, or if any configuration value is invalid