Class: Offset

ol.interaction. Offset

Offset interaction for offseting feature geometry


new Offset(options, style)

Parameters:
Name Type Description
options any
Properties
Name Type Argument Description
filter function <optional>

a function that takes a feature and a layer and return true if the feature can be modified

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

list of feature to transform

features ol.Collection.<ol.Feature>

collection of feature to transform

source ol.source.Vector | undefined

source to duplicate feature when ctrl key is down

duplicate boolean

force feature to duplicate (source must be set)

style ol.style.Style | Array.<ol.style.Style> | ol.style.StyleFunction | undefined

style for the sketch

Fires:
  • event:offsetstart
  • event:offsetting
  • event:offsetend

Extends

  • ol.interaction.Pointer