Class: Halftone

ol.filter. Halftone

Make a map or layer look like made of a set of Lego bricks.


new Halftone( [options])

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Argument Description
channel string <optional>

RGB channels: 'r', 'g' or 'b', default use intensity

color ol.colorlike <optional>

color, default black

size number <optional>

point size, default 30

crossOrigin null | string | undefined <optional>

crossOrigin attribute for loaded images.

Requires:
  • module:ol.filter

Extends

Requires

  • module:ol.filter

Methods


getActive()

Get filter active

Inherited From:
Overrides:
Returns:
Type
boolean

postcompose()

Postcompose operation


setActive(b)

Activate / deactivate filter

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

setSize(width)

Set the current size

Parameters:
Name Type Description
width number

the pattern width, default 30