| | |
| | | "bottom": 30, |
| | | "right": 5 |
| | | } |
| | | } |
| | | }, |
| | | "autoDisable":false |
| | | }, |
| | | |
| | | { |
| | |
| | | function mask_selection(regionCode){ |
| | | if(regionCode == 0){ |
| | | geoJsonLayer = new mars3d.layer.GeoJsonLayer({ |
| | | id:9999, |
| | | url: "./data/shanghai.json", |
| | | mask: true, //标识为遮罩层【重点参数】 |
| | | symbol: { |
| | |
| | | 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: { |
| | | styleOptions: { |
| | | fill: true, |
| | | color: "rgb(2,26,79)", |
| | | outline: true, |
| | | outlineColor: "#39E09B", |
| | | outlineWidth: 3, |
| | | outlineOpacity: 0.5, |
| | | arcType: Cesium.ArcType.GEODESIC, |
| | | clampToGround: true, |
| | | }, |
| | | }, |
| | | }); |
| | | map.addLayer(geoJsonLayer); |
| | | } |
| | | //geojson 各行政区边界线 |
| | | geoJsonLayer = new mars3d.layer.GeoJsonLayer({ |
| | | url: "./data/"+regionCode+".geojson", |
| | | mask: true, //标识为遮罩层【重点参数】 |
| | | symbol: { |
| | | styleOptions: { |
| | | fill: true, |
| | | color: "rgb(2,26,79)", |
| | | outline: true, |
| | | outlineColor: "#39E09B", |
| | | outlineWidth: 3, |
| | | outlineOpacity: 0.5, |
| | | arcType: Cesium.ArcType.GEODESIC, |
| | | clampToGround: true, |
| | | }, |
| | | }, |
| | | }); |
| | | map.addLayer(geoJsonLayer); |
| | | |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | 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; |
| | | } |
| | |
| | | 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) { |
| | |
| | | |
| | | 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(); |
| | |
| | | } |
| | | 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], |
| | |
| | | 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, |
| | |
| | | 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); |
| | |
| | | //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, { |
| | | // //动画线材质 |
| | |
| | | //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, { |
| | | // //动画线材质 |