Class: MultiClips

MultiClips

Clip interaction to clip layers in a circle


new MultiClips(flashlight)

Parameters:
Name Type Description
flashlight ol.interaction.clip.options

options param

  • radius {number} radius of the clip, default 100
  • layers {ol.layer|Array<ol.layer>} layers to clip
Source:

Extends

  • ol.interaction.Pointer

Methods


addClip(coordinate, radius)

Add clip on map

.

Add clip on map

Parameters:
Name Type Description
coordinate ol.Coordinate

Coordinates of clip center

radius Number | undefined

Radius to apply on clip. Default is currentRadius

Source:

clear()

Clear all persisted clip on map

.

Clear all persisted clip on map

Source:

removeLast()

Remove the last clip added to the map

.

Remove the last clip added to the map

Source:

setFollowPointer(active)

Activate or deactivate the interaction.

Activate or deactivate the interaction.

Parameters:
Name Type Description
active boolean

Active.

Source: