diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index ec6d95eeea31c09be934c2172d4581fda6645210..48b357b518c65a97d68bfae6c4b9e712add0c082 100644 --- a/pages/component/map/map.uvue +++ b/pages/component/map/map.uvue @@ -44,6 +44,7 @@ + @@ -618,6 +619,19 @@ }); }; + const handleMoveToMyLocation = () => { + mapContext.value?.moveToLocation({ + success: res => { + uni.showModal({ + content: '地图中心已经移动到当前位置' + }) + }, + fail: error => { + console.log(error); + } + }) + } + const maptap = (e : UniMapTapEvent) => { // console.log('点击地图时触发',e) uni.showModal({