diff --git a/ln_jq_app/android/app/build.gradle.kts b/ln_jq_app/android/app/build.gradle.kts index aab05d6..2539bdf 100644 --- a/ln_jq_app/android/app/build.gradle.kts +++ b/ln_jq_app/android/app/build.gradle.kts @@ -37,8 +37,8 @@ android { // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion targetSdk = flutter.targetSdkVersion - versionCode = 5 - versionName = "1.2.2" + versionCode = 6 + versionName = "1.2.3" } signingConfigs { diff --git a/ln_jq_app/assets/html/ic_tag.png b/ln_jq_app/assets/html/ic_tag.png new file mode 100644 index 0000000..dcae650 Binary files /dev/null and b/ln_jq_app/assets/html/ic_tag.png differ diff --git a/ln_jq_app/assets/html/map.html b/ln_jq_app/assets/html/map.html index 7e79fb2..8bc6706 100644 --- a/ln_jq_app/assets/html/map.html +++ b/ln_jq_app/assets/html/map.html @@ -32,7 +32,7 @@ /* --- 搜索栏样式 --- */ #search-box { position: absolute; - top: 10px; + top: 40px; left: 10px; right: 10px; z-index: 100; @@ -74,7 +74,7 @@ /* --- 导航结果面板 (底部弹出) --- */ #panel { position: fixed; - bottom: 0; + bottom: 75px; left: 0; width: 100%; height: 35%; @@ -94,7 +94,7 @@ #location-btn { position: fixed; right: 10px; - bottom: 50px; + bottom: 75px; /* 默认位置 */ width: 44px; height: 44px; @@ -121,9 +121,24 @@ fill: #555; } + /* --- 调整比例尺位置 --- */ + .amap-scalecontrol { + /* 初始状态:避开底部的定位按钮或留出安全间距 */ + bottom: 80px !important; + left: 10px !important; + transition: bottom 0.3s ease; + /* 增加平滑动画 */ + } + + /* --- 当路径规划面板显示时,比例尺自动上移 --- */ + body.panel-active .amap-scalecontrol { + bottom: 38% !important; + /* 移动到面板上方 (面板高度35% + 3%间距) */ + } + /* --- 关键:当 body 有 panel-active 类时,按钮上移 --- */ body.panel-active #location-btn { - bottom: 38%; + bottom: 45%; /* 对应 #panel 的 height + 一点间距 */ } @@ -167,7 +182,7 @@