Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LeafletEditbar

The LeafletEditbar disposable class is used to build and dispose of a LeafletMapButtonGroup for editing a [[Graphic]].

example



var map = new LeafletMap();
map.create("map", { initialXMin: -88.679196, initialYMin: 24.326418, initialXMax: -79.57153, initialYMax: 30.892178 });
var geoJSON = { type: "Feature", geometry: { type: 'LineString', coordinates: [[-82.441, 29.200], [-82.441, 29.535]] }, properties: { } };
var mapGraphicOptions = { geometry: geoJSON.geometry, feature: geoJSON, shape: 'LineString' };
var mapGraphic = new MapGraphic(graphicOptions);
var editingProvider = new LeafletEditProvider('gev', map);
var editbarOptions = { map: map, editingProvider: editingProvider, mapGraphic: mapGraphic, selectionManager: GraphicSelectionService };
var editBar = new LeafletEditbar(editbarOptions);

Hierarchy

  • LeafletEditbar

Implements

Index

Constructors

constructor

Properties

Private _editBar

_editBar: any

Private _editingProvider

_editingProvider: any

Private _map

_map: any

Private _mapGraphic

_mapGraphic: any

Private _selectionManager

_selectionManager: any

Methods

Private buildEditBar

  • buildEditBar(): LeafletMapButtonGroup
  • Returns LeafletMapButtonGroup

dispose

  • dispose(): void
  • dispose(): void
  • dispose(): void
  • Call dispose on the underlying LeafletEditbar

    Returns void

  • Call dispose on the underlying LeafletEditbar

    Returns void

  • Call dispose on the underlying LeafletEditbar

    Returns void