Class: Offset

ol.interaction. Offset

Offset interaction for offseting feature geometry

new Offset(options, style)

Name Type Description
options any
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 | Array.<> | | undefined

style for the sketch

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


  • ol.interaction.Pointer