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

animateFeature(feature, fanim, useFilter)

Animate feature on a vector layer

Parameters:
Name Type Description
feature ol.Feature

Feature to animate

fanim ol.featureAnimation | Array.<ol.featureAnimation>

the animation to play

useFilter boolean

use the filters of the layer

Fires:
  • animationstart,event: animationend
Returns:

an object to control animation with start, stop and isPlaying function

Type
olx.animationControler

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