From aa84b63fb7ebd4dc3503dc03f3ae4f6bcb3d5c58 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Fri, 1 Dec 2023 10:28:03 +0800 Subject: [PATCH] doc(DrawingManager): update example. (#320) --- packages/drawing-manager/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/drawing-manager/README.md b/packages/drawing-manager/README.md index 7b5a1a515..5cc7ea770 100644 --- a/packages/drawing-manager/README.md +++ b/packages/drawing-manager/README.md @@ -38,7 +38,7 @@ const Example = () => { isOpen={true} enableDrawingTool={true} drawingToolOptions={{ - anchor: BMAP_ANCHOR_TOP_RIGHT, + anchor: window.BMAP_ANCHOR_TOP_RIGHT, offset: new BMap.Size(5, 5) }} circleOptions={styleOptions} @@ -93,7 +93,7 @@ const Example = () => { isOpen: true, // 是否开启绘制模式 enableDrawingTool: true, // 是否显示工具栏 drawingToolOptions: { - anchor: BMAP_ANCHOR_TOP_RIGHT, // 位置 + anchor: window.BMAP_ANCHOR_TOP_RIGHT, // 位置 offset: new BMap.Size(5, 5) // 偏离值 }, circleOptions: styleOptions, // 圆的样式