LayerModel

core/models. LayerModel

new LayerModel(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Attributes Default Description
id string The internal layer identifier. Must be unique among all layers of one collection.
displayName string The name of the layer displayed on the UI.
visible boolean <optional>
false The default visibility of the layer
displayColor string <optional>
The color to identify the layer.
display Object Display specific options.
Properties
Name Type Attributes Default Description
protocol string The display protocol to use.
url string The URL to access the display of the layer.
urls Array.<string> The URLs to access the display of the layer.
id string The layer ID for the display service.
opacity Number <optional>
1.0 The default opacity.
style string <optional>
default The style parameter for services like WMS.
attribution string <optional>
The layer attribution.
search Object Search specific options.
Properties
Name Type Description
protocol string The search protocol to use.
url string The URL to search on.
id Object The layer ID for the search service.
download Object Download specific options
Properties
Name Type Description
protocol string The download protocol to use.
url string The URL to download from.
id Object The layer ID for the download service.
Source: