Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeafletEditProvider

The LeafletEditProvider class is an implementation of GraphicEditProvider.

example



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

Hierarchy

  • LeafletEditProvider

Implements

Index

Constructors

constructor

  • Parameters

    Returns LeafletEditProvider

  • Parameters

    • providerId: string

      string

    • map: LeafletMap

    Returns LeafletEditProvider

  • Parameters

    • providerId: string

      string

    • map: LeafletMap

    Returns LeafletEditProvider

Properties

Private _backupLeafletGeometry

  • _backupLeafletGeometry(): void
  • Returns void

Private _currentLeafletEditObject

_currentLeafletEditObject: any

Private _editFeatureGroup

_editFeatureGroup: any

Private _editLeafletGraphicRequest

_editLeafletGraphicRequest: any

Private _editingOptions

_editingOptions: any

Private _id

_id: any

Private _initialize

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

    • providerId: string
    • map: Map

    Returns void

Private _leafletMap

_leafletMap: any = null

Private _map

_map: any = null

Private _revertLeafletGeometry

  • _revertLeafletGeometry(): void
  • Returns void

Private _uneditedLeafletGraphicProps

_uneditedLeafletGraphicProps: any

editOptions

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

    Returns LeafletDrawingOptions

  • Property editOptions 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

Private shape

shape: any = ""

Methods

cancelEditGraphic

  • cancelEditGraphic(): void
  • cancelEditGraphic(): void
  • cancelEditGraphic(): 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

completeEditGraphic

  • completeEditGraphic(): void
  • completeEditGraphic(): void
  • completeEditGraphic(): void
  • Stop the current drawing operation; resolves the promise

    Returns void

  • Stop the current drawing operation; resolves the promise

    Returns void

  • Stop the current drawing operation; resolves the promise

    Returns void

editGraphic