浏览代码

海域字段与集体实体上图的修改

lkk 11 月之前
父节点
当前提交
3325c3cea8
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/cockpit/tdsy.vue

+ 4 - 4
src/views/cockpit/tdsy.vue

@@ -230,10 +230,10 @@ export default {
   beforeMount() { }, //生命周期 - 挂载之前
   beforeMount() { }, //生命周期 - 挂载之前
   methods: {
   methods: {
     flyDetails(item) {
     flyDetails(item) {
-      this.drawWktPloygon(item.geom, "#ff0000", item.id);
+      this.drawWktPloygon(item.geom, "#66b1ff", item.id);
       let arr = [];
       let arr = [];
       Object.keys(item).forEach((key) => {
       Object.keys(item).forEach((key) => {
-        if (item != "geom" && item != "id") {
+        if ( key != '用地类型') {
           arr.push({
           arr.push({
             name: key,
             name: key,
             value: item[key],
             value: item[key],
@@ -264,8 +264,8 @@ export default {
         .load(geojson, {
         .load(geojson, {
           clampToGround: true,
           clampToGround: true,
           stroke: Cesium.Color.fromCssColorString(yanse),
           stroke: Cesium.Color.fromCssColorString(yanse),
-          fill: Cesium.Color.WHITE.withAlpha(0.3), //注意:颜色必须大写,即不能为blue
-          strokeWidth: 5,
+          fill: Cesium.Color.WHITE.withAlpha(0.93), //注意:颜色必须大写,即不能为blue
+          strokeWidth: 2,
           // 恒定高度
           // 恒定高度
           height: 1.1,
           height: 1.1,
           // 是否显示
           // 是否显示