Browse Source

问题修改

sunzehao 3 months ago
parent
commit
e3965c97a4

+ 2 - 2
src/views/cesium.vue

@@ -549,7 +549,6 @@ export default {
           console.log(`瓦片坐标: 级别=${level}, X=${tileXY.x}, Y=${tileXY.y}`);
 
         const clickTileUrl = this.replaceTemplate(
-          // mapSelect.url,
           "https://tile.openweathermap.org/map/clouds_new/{z}/{x}/{y}.png?appid=3b66d35579770393051599f8d518df4a",
           level,
           tileXY
@@ -992,7 +991,8 @@ export default {
 
       // 调用温度底图
       const temperatureLayer = new Cesium.UrlTemplateImageryProvider({
-        url: "https://tile.openweathermap.org/map/temp_new/{z}/{x}/{y}.png?appid=3b66d35579770393051599f8d518df4a",
+        // url: "https://tile.openweathermap.org/map/temp_new/{z}/{x}/{y}.png?appid=3b66d35579770393051599f8d518df4a",
+        url: "http://localhost:3007/weather/tempapi/{z}/{x}/{y}.png",
         credit: "温度影像地图",
       });
 

+ 6 - 2
src/views/cesiumComponents/topographicMap.vue

@@ -325,12 +325,16 @@ export default {
             image: uri, // 也可以是 SVG 路径,如 'icon.svg'
             scale: 0.5,
             verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
-            horizontalOrigin: Cesium.HorizontalOrigin.CENTER
+            horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
+            // 模型贴地
+            heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
         },
         label: {
             text: val ? val.name : name,
             font: '14px sans-serif',
-            fillColor: Cesium.Color.fromBytes(255, 255, 255)
+            fillColor: Cesium.Color.fromBytes(255, 255, 255),
+            heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
+
         }
       });
       let that = this;

+ 3 - 1
src/views/satellitecloudchart.vue

@@ -9,6 +9,7 @@
         :showrainfall="false"
         :showtemperature="false"
         :showwind="false"
+        :showcity="false"
         :showexit="true"
         :showwindModel="false"
         @handleInit="resetViewport"
@@ -42,7 +43,8 @@ export default {
     return {
       sidebarRightData: null,
       viewer: null,
-      buildings: null
+      buildings: null,
+      rainObj: null
     };
   },
   created() {