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 | Style[] | function

        drawingStyle to be used by all drawing controls

      • map: Map

        reference to openlayers map

    Returns DrawingContext

Methods

addInteractions

  • addInteractions(): void

addInteractionsWithoutModify

  • addInteractionsWithoutModify(): void

circleRadiusToMeters

  • circleRadiusToMeters(radius: number): number

getSource

  • getSource(): VectorSource

getStyle

  • getStyle(): StyleLike

remakeInteractions

  • remakeInteractions(): void

removeFeature

  • removeFeature(): void

removeInteractions

  • removeInteractions(): void

removeListener

removeListeners

  • removeListeners(): void

setDrawInteraction

  • setDrawInteraction(draw: Interaction): void

setEvent

setModifyInteraction

  • setModifyInteraction(modify: Modify): void

updateBufferFeature

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

updateFeature

  • updateFeature(feature: Feature): void

Generated using TypeDoc