WmsLayer.js

WmsLayer()


constructor
Inherits from ImageLayer

WmsLayer class is responsible for adding WMS images on the map

Options:
  • transparent(Boolean)If true, transparent image is expected (default: true) @option Boolean shakyParameters If true, URL encodes WMS - specific parameters(default: false)
  • version(String)The version of the WMS (default: '1.1.1')
  • format(String)The image format (default: 'image/png')
  • styles(Array)The styles array that will be sent to the server (default: [])
  • queryParams(Array)The query parameters array that will be sent to the server (default: [])
Events:
  • image-loadThe WMS image was loaded
  • image-loadingThe WMS image is currently loading
  • wms-errorThere was an error loading WMS image
Parameter Type Description
url String The WMS URL
options Object The WmsLayer's options