|
|
|
@ -7,7 +7,7 @@ import { getGeoJSON } from "../utils";
|
|
|
|
|
import { OverlayTypes, EventTypes } from "@types"; |
|
|
|
|
import { IOverlay, IMapOptions } from "@map"; |
|
|
|
|
import { StoreAction } from "./StoreAction"; |
|
|
|
|
import { IStore, IEditorState } from "../type"; |
|
|
|
|
import { IStore } from "../type"; |
|
|
|
|
import { initState } from "../initState"; |
|
|
|
|
|
|
|
|
|
export { ActionTypes } from "./StoreAction"; |
|
|
|
@ -89,9 +89,15 @@ export class EditorAction {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
selectOverlay(id: string) { |
|
|
|
|
const { selectedIds } = this.store.getState(); |
|
|
|
|
if (selectedIds.indexOf(id) >= 0) { |
|
|
|
|
this.mapEditor?.selectOverlays(); |
|
|
|
|
this.dispatch(StoreAction.selectOverlay()); |
|
|
|
|
} else { |
|
|
|
|
this.mapEditor?.selectOverlays([id]); |
|
|
|
|
this.dispatch(StoreAction.selectOverlay(id)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
saveProject() { |
|
|
|
|
//
|
|
|
|
|