Class: Offset

ol.interaction. Offset


new Offset(options)

Offset interaction for offseting feature geometry

Parameters:
Name Type Description
options any
Properties
Name Type Description
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)

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

Extends

  • ol.interaction.Pointer

Methods


setMap(map)

Remove the interaction from its current map, if any, and attach it to a new map, if any. Pass null to just remove the interaction from the current map.

Parameters:
Name Type Description
map ol.Map

Map.