Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeafletDrawingHandler

The LeafletDrawingHandler class is an implementation of GraphicDrawingHandler for the leaflet drawing provider to use for user drawn geometry creation.

example



var map = new LeafletMap();
map.create("map", { initialXMin: -88.679196, initialYMin: 24.326418, initialXMax: -79.57153, initialYMax: 30.892178 });
var currentLeafletDrawingObject = new LeafletDrawingHandler("box", map, LeafletDrawingOptions.defaultOptions());

Hierarchy

  • LeafletDrawingHandler

Implements

Index

Constructors

constructor

Properties

Private _createDrawObject

  • _createDrawObject(): void
  • Returns void

Private _currentShapeOptions

_currentShapeOptions: any

Private _drawingHandler

_drawingHandler: any

Private _map

_map: any

Private _shapeType

_shapeType: any

Private _startDrawRequest

_startDrawRequest: any

currentShapeOptions

  • get currentShapeOptions(): LeafletDrawingOptions
  • set currentShapeOptions(options: LeafletDrawingOptions): void
  • Property currentShapeOptions LeafletDrawingOptions describe characteristics of shape to draw.

    Returns LeafletDrawingOptions

  • Property currentShapeOptions LeafletDrawingOptions describe characteristics of shape to draw.

    Parameters

    • options: LeafletDrawingOptions

    Returns void

Methods

endDraw

  • endDraw(): void
  • endDraw(): void
  • endDraw(): void
  • Stop drawing

    Returns void

  • Stop drawing

    Returns void

  • Stop drawing

    Returns void

startDraw