From a6f7384b4587f2cc346f90d0cf64e048859fc03d Mon Sep 17 00:00:00 2001 From: taohebin Date: Thu, 17 Oct 2024 10:16:40 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20map=20=E8=A1=A5=E5=85=85=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # Conflicts: # pages/component/map/map.uvue --- pages/component/map/map.uvue | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pages/component/map/map.uvue b/pages/component/map/map.uvue index ec6d95ee..48b357b5 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({ -- GitLab