Skip to content

Commit aa84b63

Browse files
committed
doc(DrawingManager): update example. (#320)
1 parent cb3a555 commit aa84b63

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/drawing-manager/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ const Example = () => {
3838
isOpen={true}
3939
enableDrawingTool={true}
4040
drawingToolOptions={{
41-
anchor: BMAP_ANCHOR_TOP_RIGHT,
41+
anchor: window.BMAP_ANCHOR_TOP_RIGHT,
4242
offset: new BMap.Size(5, 5)
4343
}}
4444
circleOptions={styleOptions}
@@ -93,7 +93,7 @@ const Example = () => {
9393
isOpen: true, // 是否开启绘制模式
9494
enableDrawingTool: true, // 是否显示工具栏
9595
drawingToolOptions: {
96-
anchor: BMAP_ANCHOR_TOP_RIGHT, // 位置
96+
anchor: window.BMAP_ANCHOR_TOP_RIGHT, // 位置
9797
offset: new BMap.Size(5, 5) // 偏离值
9898
},
9999
circleOptions: styleOptions, // 圆的样式

0 commit comments

Comments
 (0)