The LeafletEditbar disposable class is used to build and dispose of a LeafletMapButtonGroup for editing a [[Graphic]].
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);
LeafletEditbarOptions
Call dispose on the underlying LeafletEditbar
The LeafletEditbar disposable class is used to build and dispose of a LeafletMapButtonGroup for editing a [[Graphic]].
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);