mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +02:00
parent
52785e22ad
commit
ed33b1611a
1 changed files with 3 additions and 3 deletions
|
@ -349,19 +349,19 @@ export default class Umap extends ServerStored {
|
||||||
if (this.properties.enableMarkerDraw) {
|
if (this.properties.enableMarkerDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
label: this.help.displayLabel('DRAW_MARKER'),
|
label: this.help.displayLabel('DRAW_MARKER'),
|
||||||
action: () => this._leafletMap.startMarker(event),
|
action: () => this._leafletMap.editTools.startMarker(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.properties.enablePolylineDraw) {
|
if (this.properties.enablePolylineDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
label: this.help.displayLabel('DRAW_POLYGON'),
|
label: this.help.displayLabel('DRAW_POLYGON'),
|
||||||
action: () => this._leafletMap.startPolygon(event),
|
action: () => this._leafletMap.editTools.startPolygon(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (this.properties.enablePolygonDraw) {
|
if (this.properties.enablePolygonDraw) {
|
||||||
items.push({
|
items.push({
|
||||||
label: this.help.displayLabel('DRAW_LINE'),
|
label: this.help.displayLabel('DRAW_LINE'),
|
||||||
action: () => this._leafletMap.startPolyline(event),
|
action: () => this._leafletMap.editTools.startPolyline(),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
items.push('-')
|
items.push('-')
|
||||||
|
|
Loading…
Reference in a new issue