Skip to content

Commit

Permalink
feat: expose resetCenter #14
Browse files Browse the repository at this point in the history
  • Loading branch information
yue1123 committed Nov 16, 2022
1 parent d490f77 commit b0d8e3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/components/map/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -521,6 +521,8 @@
getMapInstance: () => map,
// 父组件/外部获取map组件 options
getBaseMapOptions: () => props,
// 重置地图中心
resetCenter: () => setCenterAndZoom(props.center),
// 设置地图是否可拖动
setDragging
})
Expand Down

0 comments on commit b0d8e3a

Please sign in to comment.