Layer

Layer

Base class for any kind of map layer

Constructor

new Layer(configopt)

Source:
Parameters:
Name Type Attributes Description
config Object <optional>

Configuration object

Properties
Name Type Attributes Default Description
title String <optional>
'Layer'

Layer title

visible Boolean <optional>
false

Layer initial status

layerParams Object <optional>

Extra params for OpenLayers Layer constructor

sourceParams Object <optional>

Extra params for OpenLayers Source constructor

Members

source :Object

Source:

Layer source object (One of OpenLayers' ol.source options)

Type:
  • Object

Methods

fitMap()

Source:

Fits map to this layer

getVisible() → {Boolean}

Source:

Returns layer visibility status

Returns:
Type
Boolean