Namespace: Base

Base

Layers are lightweight containers that get their data from sources.

See:

Methods


addFilter(filter)

Add a filter to an ol.Layer

Parameters:
Name Type Description
filter ol.filter

getFilters()

Get filters associated with an ol.Map

Returns:
Type
Array.<ol.filter>

getPreview(lonlat, resolution)

Return a preview for the layer.

Parameters:
Name Type Description
lonlat ol.Coordinate | undefined

The center of the preview.

resolution number

of the preview.

Returns:

list of preview url

Type
Array.<String>

removeFilter(filter)

Remove a filter to an ol.Layer

Parameters:
Name Type Description
filter ol.filter