diff --git a/src/static/image/position.png b/src/static/image/position.png new file mode 100644 index 0000000..ff1d992 Binary files /dev/null and b/src/static/image/position.png differ 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
+ + +