فهرست منبع

解决图标漂浮

maxiaoxiao 8 ماه پیش
والد
کامیت
8849003f41
1فایلهای تغییر یافته به همراه4 افزوده شده و 3 حذف شده
  1. 4 3
      src/components/Query/clickQuery/clickQuery.vue

+ 4 - 3
src/components/Query/clickQuery/clickQuery.vue

@@ -310,7 +310,7 @@ export default {
           loadGeoJSON(
             cur,
             "#ff0000",
-            { isfly: true, fill_a: 0.001, sw: 5 },
+            { isfly: true, fill_a: 0.6, sw: 5 },
             (data) => (data.name = "geoserver")
           );
         } else {
@@ -329,7 +329,7 @@ export default {
         loadGeoJSON(
           geom,
           "#0000ff",
-          { fill_a: 0.001, sw: 5 },
+          { fill_a: 0.6, sw: 5 },
           (data) => (data.name = "geoserver")
         );
       });
@@ -670,7 +670,7 @@ export default {
     highlightResultsPng(longitude, latitude) {
       manager_layer_png.entities.add({
         name: "manager_layer_png",
-        position: Cesium.Cartesian3.fromDegrees(longitude, latitude, 40),
+        position: Cesium.Cartesian3.fromDegrees(longitude, latitude),
         billboard: {
           // 图像地址,URI或Canvas的属性
           image: "./static/images/overview/go.png",
@@ -679,6 +679,7 @@ export default {
           scale: 1.0,
           zIndex: 2,
           show: true,
+          heightReference: Cesium.HeightReference.CLAMP_TO_GROUND 
         },
       });
     },