基于高德地图JS api开发的geojson编辑器.
http://geojson.finevis.cc/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
382 B
12 lines
382 B
import { Dispatch } from "react"; |
|
import { EditorAction } from "@store"; |
|
import { MapEditor } from "@map"; |
|
import { EventTypes } from "../../types/enum"; |
|
|
|
// 注册地图的事件钩子 |
|
export function registerMapEventHooks(map: MapEditor, dispatch: Dispatch<any>) { |
|
// |
|
map.on(EventTypes.FinishEditOverlay, (evt: any) => |
|
dispatch(EditorAction.finishEditOverlay(evt)) |
|
); |
|
}
|
|
|