|
|
|
@ -153,12 +153,14 @@ export class MapEditor extends Emitter implements IMapEditor {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
createOverlay(type: OverlayTypes) { |
|
|
|
|
this.finishEditOverlay(); |
|
|
|
|
this.currentOverlayEditor = this.getEditorByType(type!); |
|
|
|
|
this.currentOverlayEditor?.create(); |
|
|
|
|
this.editorStatus = "creating"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectOverlays(ids?: string[]) { |
|
|
|
|
this.finishEditOverlay(); |
|
|
|
|
this.selectedIds?.forEach((id) => { |
|
|
|
|
const { target, type } = this.overlayMap[id]; |
|
|
|
|
target.setOptions(getOverlayOptions(type)); |
|
|
|
|