Ver Fonte

调整重要测站点弹窗样式

chc há 1 ano atrás
pai
commit
462ad1fd99

+ 3 - 2
src/utils/TFMapUitl.ts

@@ -412,13 +412,14 @@ class TFMapUitl {
   }
   impotPointDom(i) {
     const data = JSON.stringify(i).replace(/\"/g, "'");
-    let str = `<div class="popup">
+    let str = 
+    `<div class="impopup">
+    <div class="popup-line"></div>
     <div style="display:flex;align-items: center;">
     <span style="font-family: Source Han Sans CN;
     font-size: 16px;
     font-weight: 500;
     line-height: 36px;color: #FFFFFF;margin-right:10px;">${i.st_name}</span> 
-   
     </div>
     <ul style="background: transparent; overflow: auto;height:150px">`
 

+ 3 - 3
src/views/map/Map.vue

@@ -778,7 +778,7 @@ export default defineComponent({
       //   if (e == 2) callback && callback();
       // });
       map.setView({
-        destination: { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
+        destination: { x: 93.0989911084554, y: 26.02060211195423, z: 666896.88999354467 },
         orientation: { heading: 6.283185307179586, pitch: -1.0182023771170687, roll: 6.283185307179586 },
       });
       this.addMapElement();
@@ -1967,7 +1967,7 @@ export default defineComponent({
                         let markerWindow=  new TFMap.HTMLElementOverLay(
                           { x:Number(i.dlon) , y: Number(i.dlat),z:Number(j.high)  },
                           TFMapUitl.impotPointDom(i)
-                        ).init().setOff(-230, -130)
+                        ).init().setOff(-350, -130)
                         markerWindow.setId('imp&' + i.stcd);
                         markerWindow.setClassify('impoint_marker*')
                         window.impoint.push(markerWindow)
@@ -1998,7 +1998,7 @@ export default defineComponent({
                         let markerWindow=  new TFMap.HTMLElementOverLay(
                           { x:Number(i.dlon) , y: Number(i.dlat),z:Number(j.high)  },
                           TFMapUitl.impotPointDom(i)
-                        ).init().setOff(-230, -130)
+                        ).init().setOff(-350, -130)
                         markerWindow.setId('imp&' + i.stcd);
                         markerWindow.setClassify('impoint_marker*')
                         window.impoint.push(markerWindow)

+ 2 - 1
src/views/map/ToolMenuBot.vue

@@ -300,7 +300,8 @@ export default defineComponent({
 
     const flyHome = () => {
       const tempData = {
-        destination:  { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
+        destination: { x: 93.0989911084554, y: 26.32060211195423, z: 666896.88999354467 },
+        // destination:  { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
         orientation: { heading: 6.283185307179586, pitch: -1.0182023771170687, roll: 6.283185307179586 },
       };
       map.flyTo(tempData, 1);

+ 2 - 1
src/views/map/toolBox.vue

@@ -454,7 +454,8 @@ export default defineComponent({
   methods: {
     flyHome() {
       const tempData = {
-        destination: { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
+        destination: { x: 93.0989911084554, y: 26.02060211195423, z: 666896.88999354467 },
+        // destination: { x: 94.44066857601297, y: 26.00104492171595, z: 666896.88999354467 },
         orientation: { heading: 6.283185307179586, pitch: -1.0182023771170687, roll: 6.283185307179586 },
       };
       map.flyTo(tempData, 1);