Options
All
  • Public
  • Public/Protected
  • All
Menu

Open Layers drawing context provides a layer between the drawing controls and the openlayers map, normalizing interactions with the openlayers map accross all drawing controls.

Hierarchy

  • DrawingContext

Index

Constructors

constructor

  • Constructs an instance of the drawing context

    Parameters

    • __namedParameters: object
      • drawingStyle: Style | function | Style[]

        drawingStyle to be used by all drawing controls

      • map: Map

        reference to openlayers map

    Returns DrawingContext

Properties

Private animationFrameId

animationFrameId: number

Private bufferLayer

bufferLayer: Vector

Private draw

draw: Interaction | null

Private drawLayer

drawLayer: Vector

Private geoFormat

geoFormat: GeoJSON

Private listenerList

listenerList: ListenerRecord[]

Private map

map: Map

Private modify

modify: Modify

Private snap

snap: Snap

Private style

style: Style | ol.StyleFunction | Style[]

Methods

addInteractions

  • addInteractions(): void

addInteractionsWithoutModify

  • addInteractionsWithoutModify(): void

areInteractionsActive

  • areInteractionsActive(): boolean

Protected bufferUpdateEvent

  • bufferUpdateEvent(): void

circleRadiusToMeters

  • circleRadiusToMeters(radius: number): number

getSource

  • getSource(): Vector

getStyle

  • getStyle(): Style | ol.StyleFunction | Style[]

remakeInteractions

  • remakeInteractions(): void

removeFeature

  • removeFeature(): void

removeInteractions

  • removeInteractions(): void

removeListener

removeListeners

  • removeListeners(): void

setDrawInteraction

  • setDrawInteraction(draw: Interaction): void

setEvent

setInteractionsActive

  • setInteractionsActive(active: boolean): void

setModifyInteraction

  • setModifyInteraction(modify: Modify): void

updateBufferFeature

  • updateBufferFeature(feature: Feature, animate?: boolean): void

updateFeature

  • updateFeature(feature: Feature): void

Generated using TypeDoc