Options
All
  • Public
  • Public/Protected
  • All
Menu

Drawing Control for a circle/point radius

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private animationFrame

animationFrame: function

Type declaration

    • (): void
    • Returns void

Private animationFrameId

animationFrameId: number

Protected context

Protected drawingActive

drawingActive: boolean

Protected geoFormat

geoFormat: GeoJSON

Private initalCenter

initalCenter: [number, number]

Protected mouseDragActive

mouseDragActive: boolean

Protected properties

properties: GeoProps

Protected receiver

Methods

Protected applyPropertiesToFeature

  • applyPropertiesToFeature(feature: Feature): void

cancelDrawing

  • cancelDrawing(): void

Protected featureToGeo

Private getFeatureFromDrawEvent

  • getFeatureFromDrawEvent(e: any): Feature

Private getFeatureModifyEvent

  • getFeatureModifyEvent(e: any): Feature

getGeoType

  • getGeoType(): ol.geom.GeometryType

getProperties

getShape

getStaticStyle

  • getStaticStyle(): Style | Style[]

isActive

  • isActive(): boolean

isDrawing

  • isDrawing(): boolean

isMouseDragActive

  • isMouseDragActive(): boolean

makeFeatures

Private makeRadiusLineFromPoint

  • makeRadiusLineFromPoint(point: [number, number], bearing?: number): LineString

onCompleteDrawing

  • onCompleteDrawing(e: any): void

onCompleteModify

  • onCompleteModify(e: any): void

onStartDrawing

  • onStartDrawing(e: any): void

onStartModify

  • onStartModify(e: any): void

Private pointsEqual

  • pointsEqual(a: [number, number], b: [number, number]): boolean

Private reorientRadiusLineFeature

  • reorientRadiusLineFeature(center: [number, number]): void

setActive

  • setActive(active: boolean): void

setGeo

setProperties

  • setProperties(properties: GeoProps): void

Private startDrawAnimation

  • startDrawAnimation(feature: Feature): void

startDrawing

  • startDrawing(): void

Private startDrawingInteraction

  • startDrawingInteraction(): void

Private stopDrawAnimation

Private toLine

  • toLine(feature: Feature): LineString

Private toPoint

  • toPoint(feature: Feature): Point

Private updatePointFromRadiusLine

  • updatePointFromRadiusLine(line: LineString): Point

Protected writeExtendedGeoJSON

Generated using TypeDoc