Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeafletDrawingProvider

The LeafletDrawingProvider class is an implementation of GraphicDrawingProvider.

example



var map = new View.LeafletMap(); map.create("map", { initialXMin: -88.679196, initialYMin: 24.326418, initialXMax: -79.57153, initialYMax: 30.892178 }); var leafletDrawingProvider = new LeafletDrawingProvider('default', map);

Hierarchy

  • LeafletDrawingProvider

Implements

Index

Constructors

constructor

  • Parameters

    Returns LeafletDrawingProvider

  • Parameters

    • providerId: string

      string

    • map: LeafletMap

    Returns LeafletDrawingProvider

  • Parameters

    • providerId: string

      string

    • map: LeafletMap

    Returns LeafletDrawingProvider

Properties

Private _currentLeafletDrawingObject

_currentLeafletDrawingObject: any

Private _drawLeafletGraphicRequest

_drawLeafletGraphicRequest: any

Private _drawingOptions

_drawingOptions: any

Private _id

_id: any

Private _initialize

  • _initialize(providerId: string, map: LeafletMap): void
  • Parameters

    • providerId: string
    • map: LeafletMap

    Returns void

Private _leafletMap

_leafletMap: any = null

Private _map

_map: any = null

Private _setDrawObjectOptions

  • _setDrawObjectOptions(options: LeafletDrawingOptions): void
  • Parameters

    • options: LeafletDrawingOptions

    Returns void

currentDrawingObject

  • get currentDrawingObject(): LeafletDrawingHandler
  • set currentDrawingObject(drawingObject: LeafletDrawingHandler): void
  • Property currentDrawingObject LeafletDrawingHandler

    Returns LeafletDrawingHandler

  • Property currentDrawingObject LeafletDrawingHandler

    Parameters

    • drawingObject: LeafletDrawingHandler

    Returns void

drawingOptions

  • get drawingOptions(): LeafletDrawingOptions
  • set drawingOptions(options: LeafletDrawingOptions): void
  • Property drawingOptions LeafletDrawingOptions

    Returns LeafletDrawingOptions

  • Property drawingOptions LeafletDrawingOptions

    Parameters

    • options: LeafletDrawingOptions

    Returns void

id

  • get id(): string
  • set id(id: string): void
  • Property id string is this provider identifier

    Returns string

  • Property id string is this provider identifier

    Parameters

    • id: string

    Returns void

map

  • get map(): LeafletMap
  • set map(map: LeafletMap): void
  • Property map LeafletMap

    Returns LeafletMap

  • Property map LeafletMap

    Parameters

    • map: LeafletMap

    Returns void

Methods

cancelDrawGraphic

  • cancelDrawGraphic(): void
  • cancelDrawGraphic(): void
  • cancelDrawGraphic(): void
  • Stop the current drawing operation; rejects the promise

    Returns void

  • Stop the current drawing operation; rejects the promise

    Returns void

  • Stop the current drawing operation; rejects the promise

    Returns void

drawGraphic

  • drawGraphic(drawingType: string): Promise<MapGraphic>
  • drawGraphic(drawingType: string): Promise<MapGraphic>
  • drawGraphic(drawingType: string): Promise<MapGraphic>
  • Begin allowing user to draw specified shape.

    Parameters

    • drawingType: string

      string (point, box, line, polygon, circle)

    Returns Promise<MapGraphic>

    Q.Promise of the new MapGraphic.

  • Begin allowing user to draw specified shape.

    Parameters

    • drawingType: string

      string (point, box, line, polygon, circle)

    Returns Promise<MapGraphic>

    Q.Promise of the new MapGraphic.

  • Begin allowing user to draw specified shape.

    Parameters

    • drawingType: string

      string (point, box, line, polygon, circle)

    Returns Promise<MapGraphic>

    Q.Promise of the new MapGraphic.