zhaoxing
2022-10-21 8f5b493fa963a056888c89fa8b7f32fa980510e3
轨迹查询/图层显示/撒点高度等
8个文件已修改
37 ■■■■■ 已修改文件
config/widget.json 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
js/function.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgets/manageLayers_style/view.js 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/taxiRouteReplay/view.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/taxiRouteReplay/widget.js 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_detail/view.js 4 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_search/widget.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
widgetsTS/widget_summary/widget.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/widget.json
@@ -315,7 +315,8 @@
          "bottom": 30,
          "right": 5
        }
      }
      },
      "autoDisable":false
    },
    {
js/function.js
@@ -233,6 +233,7 @@
function mask_selection(regionCode){
    if(regionCode == 0){
        geoJsonLayer = new mars3d.layer.GeoJsonLayer({
      id:9999,
          url: "./data/shanghai.json",
          mask: true, //标识为遮罩层【重点参数】
          symbol: {
@@ -246,14 +247,14 @@
              arcType: Cesium.ArcType.GEODESIC,
              clampToGround: true,
            },
          },
          zIndex: 99999999999,
          }
        });
        map.addLayer(geoJsonLayer);
      // return
    }
    }else{
    //geojson 各行政区边界线
      geoJsonLayer = new mars3d.layer.GeoJsonLayer({
  id:9999,
        url: "./data/"+regionCode+".geojson",
        mask: true, //标识为遮罩层【重点参数】 
        symbol: {
@@ -272,3 +273,5 @@
      map.addLayer(geoJsonLayer);
}
}
widgets/manageLayers_style/view.js
@@ -51,8 +51,9 @@
  }
  var item = layer.options;
  console.log(item,"item")
  if (!item.name || item.name == "") {
  if (!item.name || item.name == "" || item.id == 9999) {
    console.log("未命名图层不加入图层管理", layer);
    return;
  }
widgetsTS/taxiRouteReplay/view.js
@@ -56,12 +56,17 @@
    haoutil.loading.show();
    thisWidget.appDateHourStart = $("#appDateHourStart").val()
    thisWidget.appDateHourEnd = $("#appDateHourEnd").val()
    if($("#taxisn").val() || $("#taxisn").val()=='') {$("#taxisn").val(thisWidget.taxi_sn)}
    if(!$("#taxisn").val() || $("#taxisn").val()=='') {$("#taxisn").val(thisWidget.taxi_sn)}
    let str = $("#taxisn").val()
    let time_1 = thisWidget.appDateHourStart
    let time_2 = thisWidget.appDateHourEnd
    console.log(str,time_1,time_2,"参数")
    $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + $("#taxisn").val(), {
    // $.getJSON(thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_1004_single_path&siteid=" + thisWidget.taxi_sn, {
      datatime1: thisWidget.appDateHourStart,
      datatime2: thisWidget.appDateHourEnd
    }, (result) => {
      console.log(result,"result")
      haoutil.loading.hide();
      thisWidget.clearReplayLayers();
      if (result.data.result.length > 0) {
widgetsTS/taxiRouteReplay/widget.js
@@ -14,9 +14,9 @@
 
    reloadData(new_taxi_sn) {
      console.log(new_taxi_sn,"reload")
      this.taxi_sn = new_taxi_sn;
      this.viewWindow.resetStartQueryTaxiDataText(this.taxi_sn);
      
      this.viewWindow.resetStartQueryTaxiDataText(new_taxi_sn);
      this.taxi_sn = new_taxi_sn;
 
      if (this.startGraphic) {
        this.startGraphic.remove();
@@ -143,7 +143,6 @@
          }
          item = changeNullAndundefinedToEmpty(item)
          let color_value = this.viewWindow.getLayerPointColorByQindexandValue(1004,this.qindex, item[this.qindex]);
          console.log(item,"路线item",item[this.qindex],this.viewWindow.getLayerPointColorByQindexandValue(1004,this.qindex, item[this.qindex]))
          //points[Pointsdata.length] = [lon,lat]
          var CorridorPrimitive = new mars3d.graphic.CorridorEntity({
            positions: [position,position2],
@@ -153,7 +152,7 @@
              height: 0,
              cornerType: Cesium.CornerType.BEVELED,
              // radius: 8.0,
              diffHeight: this.qindex == "co" ? 300 * item[this.qindex] :  item[this.qindex]  || item[this.qindex] == "/" ? 500 : item[this.qindex], //高度
              diffHeight: this.qindex == "co" ? 100 * item[this.qindex] :  10*item[this.qindex], //高度
              color:color_value,
              opacity: 1,
              // rotationDegree: 45,
widgetsTS/widget_detail/view.js
@@ -168,6 +168,10 @@
                for (var i = 0; length = tableData.length, i < length; i++) {
                    var j = i + 1;
                    var topObj = tableData[i];
                    let end_time = topObj.posttime.split(" ");
                    if(end_time[1] === "00:00:00"){
                        topObj.posttime = end_time[0]
                    }
                    topObj = changeNullAndundefinedToEmpty(topObj);
                    var _tr = "<tr onmouseover='over(this)' onmouseout='out(this)' ><td>" + j + "</td><td onclick='locateAndShowDetail(this)'>" +topObj.name+"</td><td>" + topObj.posttime + "</td><td>" + topObj.pm25 + "</td><td>" + topObj.pm10 + "</td><td>" + topObj.no + "</td><td>" + topObj.nox + "</td><td>" + topObj.no2 + "</td><td>" + topObj.co + "</td></tr>"
                    $("#indexTb").append(_tr);
widgetsTS/widget_search/widget.js
@@ -168,7 +168,7 @@
                    //closure: true,
                    height: 0,
                    cornerType: Cesium.CornerType.MITERED,
                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 2000 : attr[qindex], //高度
                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  20*attr[qindex], //高度
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex] || "#C0C0C0"),
                    // material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
                    //     //动画线材质
widgetsTS/widget_summary/widget.js
@@ -178,7 +178,7 @@
                    //closure: true,
                    height: 0,
                    cornerType: Cesium.CornerType.MITERED,
                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  attr[qindex] || attr[qindex] == "/" ? 2000 : attr[qindex],//高度
                    diffHeight: qindex == "co" ? 500 * attr[qindex] :  20 * attr[qindex],//高度
                    color: this.winPage.getLayerPointColorByQindexandValue(layerid, qindex, attr[qindex]),
                    // material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
                    //     //动画线材质