ソースを参照

提示样式修改

mork 3 ヶ月 前
コミット
e380786f91
1 ファイル変更9 行追加3 行削除
  1. 9 3
      src/views/leaflet.vue

+ 9 - 3
src/views/leaflet.vue

@@ -1336,8 +1336,14 @@ export default {
       this.measureTooltipsGroup = L.layerGroup().addTo(map); // 专门管理提示框
 
       // 显示提示
-      this.showMeasureTip = true;
-      this.measureTipText = "点击地图添加测距点,双击结束";
+      if(this.isMobile == true){
+        this.showMeasureTip = false;
+        this.measureTipText = "";
+      }else{
+        this.showMeasureTip = true;
+        this.measureTipText = "点击地图添加测距点,双击结束";
+      }
+      
 
       // 监听地图点击事件
       map.on("click", this.addMeasurePoint);
@@ -2000,7 +2006,7 @@ export default {
   font-size: 14px;
   color: #3165FF;
 }
-.buff-tip[data-v-1c94735a] {
+.buff-tip {
     position: fixed;
     top: 20px;
     background-color: rgba(0, 0, 0, 0.7);