Class: Blob

ol.interaction. Blob

Blob interaction to clip layers in a blob


new Blob(options)

Parameters:
Name Type Description
options *

blob options

Properties
Name Type Argument Default Description
radius number

radius of the clip, default 100

layers ol.layer | Array.<ol.layer>

layers to clip

stiffness number <optional>
20

spring stiffness coef, default 20

damping number <optional>
7

spring damping coef

mass number <optional>
1

blob mass

points number <optional>
10

number of points for the blob polygon

tension number <optional>
.5

blob polygon spline tension

fuss number <optional>

bob fussing factor

amplitude number <optional>
1

blob deformation amplitude factor

Extends

Methods


_setPosition(e)

Set position of the clip

Parameters:
Name Type Description
e ol.MapBrowserEvent
Inherited From:
Overrides:

addLayer(layer)

Add a layer to clip

Parameters:
Name Type Description
layer ol.layer | Array.<ol.layer>

to clip

Inherited From:
Overrides:

getPixelPosition()

Get position of the clip

Inherited From:
Overrides:
Returns:

pixel

Type
ol.Pixel

getPosition()

Get position of the clip

Inherited From:
Overrides:
Returns:
Type
ol.coordinate

getRadius()

Get clip radius

Inherited From:
Overrides:
Returns:

radius

Type
integer

removeLayer(layer)

Remove a layer to clip

Parameters:
Name Type Description
layer ol.layer | Array.<ol.layer>

to clip

Inherited From:
Overrides:

removeLayers()

Remove all layers

Inherited From:
Overrides:

setActive(active)

Activate or deactivate the interaction.

Parameters:
Name Type Description
active boolean

Active.

Inherited From:
Overrides:

setMap()

Set the map > start postcompose

Inherited From:
Overrides:

setPixelPosition(pixel)

Set position of the clip

Parameters:
Name Type Description
pixel ol.Pixel
Inherited From:
Overrides:

setPosition(coord)

Set position of the clip

Parameters:
Name Type Description
coord ol.coordinate
Inherited From:
Overrides:

setRadius(radius)

Set clip radius

Parameters:
Name Type Description
radius integer
Inherited From:
Overrides: