From 537c921156c0da43e59d7ab6e9b420122119777f Mon Sep 17 00:00:00 2001 From: Cmen <1176967590@qq.com> Date: Mon, 7 Mar 2022 09:42:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 18 +++++++++--------- package.json | 2 +- src/editor/Plot/mapHooks.ts | 12 ------------ 3 files changed, 10 insertions(+), 22 deletions(-) delete mode 100644 src/editor/Plot/mapHooks.ts 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)) - ); -}