Class: Legend

Legend()

new Legend()

Class representing the Legend.

Source:

Extends

  • React.Component

Members

propTypes :Object

The properties.

Type:
  • Object
Source:

Methods

componentWillMount()

Calls getLegendUrl.

Source:

componentWillReceiveProps()

Calls getLegendUrl for dynamic extraParams like scale

Source:

getLegendUrl()

Get the corresponding legendGraphic of a layer. If layer is configured with "legendUrl" this will be used. Otherwise a getLegendGraphic requestString will be created by the MapUtil.

Source:

onError()

onError handler for the rendered img.

Source:

render()

The render function.

Source:

Legend()

new Legend()

Create the Legend.

Source:

Members

propTypes :Object

The properties.

Type:
  • Object
Source:

Methods

componentWillMount()

Calls getLegendUrl.

Source:

componentWillReceiveProps()

Calls getLegendUrl for dynamic extraParams like scale

Source:

getLegendUrl()

Get the corresponding legendGraphic of a layer. If layer is configured with "legendUrl" this will be used. Otherwise a getLegendGraphic requestString will be created by the MapUtil.

Source:

onError()

onError handler for the rendered img.

Source:

render()

The render function.

Source: