WPSWidget

WPSWidget

Base class for Web Processing Service widgets

Constructor

new WPSWidget(config)

Source:
Parameters:
Name Type Description
config Object

Configuration object

Properties
Name Type Attributes Default Description
title String

Widget title

server String

URL of map server

namespace Object

Namespace object

Properties
Name Type Description
name String

Namespace to use

url String

Namespace URL

layerName String

Name of the layer to query

geometryName String <optional>
geom

Name of the geometry column

format function <optional>

Function to parse and transform data fetched from server. This function should return a human friendly value as it will be shown as the widget current value.

Extends

Methods

(protected) format() → {Object}

Source:
Overrides:

Processes the widget value and returns a human friendly version.

Returns:
  • Current widget value prepared to be shown
Type
Object

refresh()

Source:
Overrides:

Reloads the widget value using the formatted value.

render()

Source:
Inherited From:

Renders the widget layout.