Class: Texture

ol.filter. Texture


new Texture(options)

Add texture effects on maps or layers

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

Extends

Requires

  • module:ol.filter

Methods


getActive()

Get filter active

Inherited From:
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:

setFilter( [options])

Set texture

Parameters:
Name Type Argument Description
options FilterTextureOptions <optional>