Class: Crop

ol.filter. Crop


new Crop( [options])

Crop drawing using an ol.Feature

Parameters:
Name Type Argument Description
options Object <optional>
Properties
Name Type Argument Default Description
feature ol.Feature <optional>

feature to crop with

inner boolean <optional>
false

mask inner, default false

Requires:
  • module:ol.filter
  • module:ol.filter.Mask

Extends

Requires

  • module:ol.filter
  • module:ol.filter.Mask

Methods


drawFeaturePath_()

Draw the feature into canvas

Inherited From:

getActive()

Get filter active

Inherited From:
Returns:
Type
boolean

setActive(b)

Activate / deactivate filter

Parameters:
Name Type Description
b boolean
Inherited From: