From eef16b07aef7c778abf1ceceee94349d594c8b4b Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Wed, 14 Jan 2026 10:33:41 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BE=E5=BA=A6=E5=9C=B0=E5=9B=BE=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/static/image/position.png | Bin 0 -> 989 bytes src/static/map.html | 380 +++++++++++++++++++++++++++++++++- 2 files changed, 378 insertions(+), 2 deletions(-) create mode 100644 src/static/image/position.png diff --git a/src/static/image/position.png b/src/static/image/position.png new file mode 100644 index 0000000000000000000000000000000000000000..ff1d9923e9a985611efff30978e289ab8483a17a GIT binary patch literal 989 zcmV<310wv1P)P=N5Jm@VOF2X$k)0*m`|J!S37mxSNdV;_kTckp*x8FLvdA(^+vL4cH(@+8FoZ>{ zE_Y9L{d`?jT}{6@;qUtTdI(J~FE0oGYUU&WIGsY}`T6;O1Azb2#;FnbaGLv~I0^vy zj+|dzT|Keh;QR|zY&M&3i8qBml-HFy0nn%pFuH`wUauE9$MFxo3%)->@=AC!WM^Fq z^B@46>vX9Dj6dVBOf-6YeEjtC^75JQ5&IMN=gb3We0FxWMAsr^yM43*@B|ppc@Alb z!_N;74|j=Hnq9Bg&wQ`$@9*dAPXq*zXFxYJ^c7SfJctM~YQDDA>Dx(6x(-iXQydPM8&x z*^Z<@5LPHuSz|gO)M0L?*d@Iogj&$0 z%h`yV0`sC_?|er1du#Q`MH7g3=?q_(9dbQy`=Ilx*f>Uv~ zjD@QRdrsktg{^$j7oFEl!odP+%oPd_n~QTBHD29|iwjS!PPA=(Nis}25{k}66nqii z>vaCcxhId50V22Lihd1%yVOD!wtq)&kbexN=w)3a)|j3~0M^0|;*t*dlni#lV1prg zPYByvtbA*R&-!QtpqQ!1Aeenl?UwmOiquGugndcAbLv*sNKJ5u(F#BrL68oA^F>X- z^TF8|5om_9X_^JM$)`rnQBtg}Cs#n)3qS$Wp&_DRT|^#P#}7~T{e?W{#1@-3$6inh z8Xd1IBKyZd09oB=V05H$08AwIenO5p|7@*sB?ZlQr_mWewx)5xNbuH>Z^r^~5gose zp`!sDW4w#(NdQR0g8a|-o&FGrKL7v#|No46LLvYF00v1!K~w_(_FcwT8Kf&|00000 LNkvXXu0mjfp7z5% literal 0 HcmV?d00001 diff --git a/src/static/map.html b/src/static/map.html index b9ce340..2d4730d 100644 --- a/src/static/map.html +++ b/src/static/map.html @@ -168,6 +168,24 @@ background: rgba(0, 45, 182, 1); } + /* 回到定位按钮 */ + .location-center-btn { + position: fixed; bottom: 20px; right: 20px; + width: 32px; height: 32px; + background: rgba(255, 255, 255, 0.95) url('./image/position.png') center center / 70% no-repeat; + border-radius: 50%; display: flex; align-items: center; justify-content: center; + cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); + z-index: 998; pointer-events: auto; + transition: transform 0.2s, box-shadow 0.2s; + } + .location-center-btn:hover { + transform: scale(1.1); + box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); + } + .location-center-btn:active { + transform: scale(0.95); + } + /* 地图 Label 样式 - 提取至 CSS */ .map-project-label { color: #002db6 !important; @@ -230,6 +248,9 @@
AR
+ + +