Class: Texture

ol.filter. Texture

Add texture effects on maps or layers


new Texture(options)

Parameters:
Name Type Description
options FilterTextureOptions
Requires:
  • module:ol.filter

Extends

Requires

  • module:ol.filter

Methods


getActive()

Get filter active

Inherited From:
Overrides:
Returns:
Type
boolean

getPattern(offsetX, offsetY)

Get translated pattern

Parameters:
Name Type Description
offsetX number

x offset

offsetY number

y offset


postcompose()

Draw pattern over the map on postcompose


setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b boolean
Inherited From:
Overrides:

setFilter( [options])

Set texture

Parameters:
Name Type Argument Description
options FilterTextureOptions <optional>