fuchengshen
2022-07-28 7956ae1a560629a54cb17382ec5d5ad8771752f3
public/hn3d/example/00_hn_new.html
@@ -363,7 +363,7 @@
            id: 1,
            name: "华能厂区",
            type: "3dtiles",
            url: "../model/Huanengchangqu_0715/tileset.json",
            url: "../model/Huanengchangqu_0728/tileset.json",
            position: {
              lng: 121.403176,
              lat: 31.467125,
@@ -516,22 +516,26 @@
        url: `${data_url}get_simu`,
        success: function (data) {
          console.log(data.data, "simu")
          simu = new mars3d.graphic.ModelEntity({
          for (let i = 0; i < data.data.length; i++) {
            position: [121.406729, 31.467183, 50], // 楼栋位置
            simu = new mars3d.graphic.ModelEntity({
            style: {
              // url: "http://112.74.77.127:9100/hn/doulunji/dabi/doulunji_dabi.gltf",
              url: "../model/simu_0322/simu_0322.gltf",
              scale: 0.005,
              color: "#ff0000",
              fill: true
            },
            // 弹出框中打开任务下发表单
            popup: "<br/><p><a href='#' onclick='javascript:showHistoryPathDetail(" + "12345" + ")' >配置任务</a></p>",
            allowDrillPick: false,
          })
          simu_layer.addGraphic(simu)
              position: [data.data[i].longitude, data.data[i].latitude, 50], // 楼栋位置
              style: {
                // url: "http://112.74.77.127:9100/hn/doulunji/dabi/doulunji_dabi.gltf",
                url: "../model/simu_0322/simu_0322.gltf",
                scale: 0.005,
                color: "#ff0000",
                fill: true
              },
              // 弹出框中打开任务下发表单
              popup: "<br/><p><a href='#' onclick='javascript:showHistoryPathDetail(" + data.data[i].logic_id + ")' >配置任务</a></p>",
              allowDrillPick: false,
            })
            simu_layer.addGraphic(simu)
          }
        },
        error: function (request, textStatus) {