diff --git a/README.md b/README.md index 5783324..6eff981 100644 --- a/README.md +++ b/README.md @@ -5,14 +5,14 @@ ## Roadmap -- [ ] GeoJSON新建, 保存, 导出, 导入. +- [x] GeoJSON新建, 保存, 导出, 导入. - [ ] 自定义地图样式 -- [ ] 图层目录 -- [ ] 图层工具 - - [ ] 矩形工具 - - [ ] 多边形工具 - - [ ] 圆形工具 - - [ ] 线段工具 +- [x] 图层目录 +- [x] 图层工具 + - [x] 矩形工具 + - [x] 多边形工具 + - [x] 圆形工具 + - [x] 线段工具 - [ ] 标记点工具 - [ ] 编辑工具 - [ ] 搜索定位工具 @@ -20,7 +20,7 @@ - [ ] 删除工具 - [ ] 重做工具 - [ ] 合并工具 -- [ ] 属性工具 +- [x] 属性工具 - [ ] 自定义背景 - [ ] 自定义样式 - - [ ] 自定义额外属性 \ No newline at end of file + - [x] 自定义额外属性 \ No newline at end of file diff --git a/package.json b/package.json index 478709c..31c4509 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.0.1", "scripts": { "dev": "vite", - "build": "tsc && vite build", + "build": "vite build", "preview": "vite preview", "lint": "prettier --write \"src/**/*.{js,jsx,ts,tsx,json,less,md}\"" }, diff --git a/src/editor/Plot/mapHooks.ts b/src/editor/Plot/mapHooks.ts deleted file mode 100644 index 8c6f493..0000000 --- a/src/editor/Plot/mapHooks.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Dispatch } from "react"; -import { EditorAction } from "@store"; -import { MapEditor } from "@map"; -import { EventTypes } from "../../types/enum"; - -// 注册地图的事件钩子 -export function registerMapEventHooks(map: MapEditor, dispatch: Dispatch) { - // - map.on(EventTypes.FinishEditOverlay, (evt: any) => - dispatch(EditorAction.finishEditOverlay(evt)) - ); -}