| | |
| | | "style_selected":"pm25", |
| | | "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"], |
| | | "regiontype":"00", |
| | | "minimumLevel":11, |
| | | "minimumLevel":8, |
| | | "maximumLevel":12, |
| | | "show":false, |
| | | "zIndex":6 |
| | |
| | | "style_selected":"pm25", |
| | | "styleoptions": ["pm25", "pm10", "no", "no2", "nox", "co"], |
| | | "regiontype":"00", |
| | | "minimumLevel":8, |
| | | "maximumLevel":10, |
| | | "minimumLevel":6, |
| | | "maximumLevel":7, |
| | | "show":false, |
| | | "zIndex":7 |
| | | |
| | |
| | | grid = array[3] |
| | | } |
| | | } |
| | | console.log(grid,"grid") |
| | | return grid + "米网格 <br/><br /> grid_id:"+item["grid_id"]+ |
| | | "<br />数据时间:" + |
| | | item["datatime"] + |
| | |
| | | function addGraphictoHighlightLayer() { |
| | | mars3d.global_variables.tmpHighlightGraphics.forEach((item) => { |
| | | mars3d.global_variables.tmpHighlightGraphicLayer.addGraphic(item); |
| | | console.log(item,"高亮") |
| | | }); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | function addWMSLayer(item) { |
| | | console.log(item,"查看griditem") |
| | | |
| | | var wmsLyer = new mars3d.layer.WmsLayer({ |
| | | id: item.id, |
| | |
| | | } |
| | | } |
| | | function timetype_change3(){ |
| | | console.log(mars3d,"mars3d"); |
| | | debugger; |
| | | if(mars3d.global_variables.timetype == "min"){ |
| | | $(".menu3").attr('onclick'," "); //$("#名称").attr("属性名","属性值"); |
| | | haoutil.msg("请切换至天或时查看数据!!!"); |
| | |
| | | |
| | | |
| | | function addTaxiLayer(item) { |
| | | |
| | | taxi_layer = new mars3d.layer.GraphicLayer({ |
| | | id: item.id, |
| | | name: item.name, |
| | |
| | | } |
| | | |
| | | function setTaxiLayerMapClock() { |
| | | console.log(mars3d.global_variables.queryDataTStartTaxi,mars3d.global_variables.queryDataTEnd,"时间") |
| | | map.clock.shouldAnimate = true; |
| | | map.clock.startTime = Cesium.JulianDate.fromDate(new Date(mars3d.global_variables.queryDataTStartTaxi)); |
| | | map.clock.currentTime = Cesium.JulianDate.fromDate(new Date(mars3d.global_variables.queryDataTStartTaxi)); |
| | |
| | | //reLoadLayers(); |
| | | //refreshWidgets(); |
| | | }); |
| | | console.log(this,"this setDate") |
| | | $("#appDateHour").datetimepicker("setDate", new Date(getDefaultDateTimeLocal())); |
| | | $('#appDateHour').datetimepicker('setEndDate', new Date(this.defaultDateTime)); |
| | | } |
| | |
| | | mars3d.global_variables.queryDataTStartGeo = tmpDatetime; |
| | | mars3d.global_variables.queryDataType = value; |
| | | mars3d.global_variables.timetype = "hour"; |
| | | console.log(mars3d.global_variables.queryDataTStart,"start",mars3d.global_variables.queryDataTEnd,"end",mars3d.global_variables.DefaultDateTimeStart,"一天的时间") |
| | | reLoadLayers(); |
| | | refreshWidgets(); |
| | | timetype_change1(); |
| | |
| | | $('#appDateHour').hide() |
| | | $('#appDate').show() |
| | | var tmpDatetime = $('#appDate').val() + " 00:00:00"; |
| | | |
| | | tmpDatetime = tmpDatetime.replace(/\:/g,"").replace(/-/g,"").replace(/\s+/g,""); |
| | | mars3d.global_variables.queryDataTStart = $('#appDate').val() + " 00:00:00"; |
| | | mars3d.global_variables.queryDataTEnd = $('#appDate').val()+ " 00:15:00"; |
| | |
| | | mars3d.global_variables.queryDataTStartGeo = tmpDatetime; |
| | | mars3d.global_variables.queryDataType = value; |
| | | mars3d.global_variables.timetype = "day"; |
| | | console.log(tmpDatetime,mars3d.global_variables.queryDataTStart,mars3d.global_variables.queryDataTEnd ,mars3d.global_variables.DefaultDateTimeStart,"一天的时间") |
| | | reLoadLayers(); |
| | | refreshWidgets(); |
| | | timetype_change1(); |
| | |
| | | thisWidget = _thisWidget; |
| | | |
| | | DatePicker("#appDateHourStart", '#appDateHourEnd'); |
| | | console.log($("#appDateHourStart").val(),$('#appDateHourEnd').val(),"rywsjbh") |
| | | $("#appDateHourStart").datetimepicker("setDate", new Date(thisWidget.appDateHourStart)); |
| | | $('#appDateHourEnd').datetimepicker('setDate', new Date(thisWidget.appDateHourEnd)); |
| | | $("#taxisn").val(thisWidget.taxi_sn); |
| | |
| | | ev.stopPropagation(); |
| | | var startTime = ev.date; |
| | | $(endSelector).datetimepicker('setStartDate',startTime); |
| | | // $(endSelector).val(""); |
| | | // if (ev.date) { |
| | | // $(endSelector).datetimepicker('setStartDate', new Date(ev.date.valueOf())) |
| | | // } else { |
| | | // $(endSelector).datetimepicker('setStartDate', null); |
| | | // } |
| | | thisWidget.appDateHourStart = $(beginSelector).val(); |
| | | }) |
| | | $(endSelector).datetimepicker( |
| | |
| | | //每个窗口创建完成后调用 |
| | | winCreateOK(opt, result) { |
| | | this.viewWindow = result; |
| | | console.log(this.config.params,"this.taxi_sn") |
| | | console.log(this,"this.taxi_sn") |
| | | this.appDateHourStart = mars3d.global_variables.queryDataTStartTaxi; |
| | | this.appDateHourEnd = mars3d.global_variables.queryDataTEnd; |
| | | this.nodejs_url_predix = mars3d.global_variables.nodejs_url_predix; |
| | |
| | | } |
| | | //打开激活 |
| | | activate() { |
| | | console.log(this,"this detail") |
| | | this.map.addLayer(this.groupLayer); |
| | | this.map.clock.shouldAnimate = false; |
| | | this.old_map_clock_startTime = this.map.clock.startTime; |
| | |
| | | } |
| | | //打开激活 |
| | | activate() { |
| | | haoutil.oneMsg("移动监测点只可查询十五分钟车辆数据! ! !"); |
| | | console.log(map,"mapmapmap") |
| | | map.viewer.animation.container.style.display = "block"; |
| | | } |
| | |
| | | $("#style_radio2 label").eq(5).html('<input type="radio" name="style_option2" value="co">CO'); |
| | | |
| | | $('input[type=radio][name=style_option]').change(function () { |
| | | console.log(this.value,"this.value grid") |
| | | thisWidget.update_grid_style(this.value); |
| | | }); |
| | | $('input[type=radio][name=style_option2]').change(function () { |
| | |
| | | } |
| | | |
| | | function addImageToMap(grid_item) { |
| | | console.log(grid_item,"grid_item") |
| | | |
| | | if (grid_item.layer == null) { |
| | | grid_item.layer = new mars3d.layer.ImageLayer({ |
| | |
| | | } |
| | | //初始化[仅执行1次] |
| | | create() { |
| | | |
| | | this.grid_500 = this.map.getLayerById(3000); |
| | | this.grid_1000 = this.map.getLayerById(3001); |
| | | this.grid_3000 = this.map.getLayerById(3002); |
| | |
| | | this.nodejs_url_predix = mars3d.global_variables.nodejs_url_predix; |
| | | this.heatmapGroupLayer = new mars3d.layer.GroupLayer({ id: 5000, pid: 50, name: "", show: false }); |
| | | this.map.addLayer(this.heatmapGroupLayer); |
| | | console.log(this.grid_500,this.grid_5000,this.grid_3000,this,"grid this") |
| | | } |
| | | |
| | | |
| | | |
| | | //每个窗口创建完成后调用 |
| | | winCreateOK(opt, result) { |
| | | console.log(this.map,"this.map.grid") |
| | | //this.grid_500.show = true; |
| | | //this.grid_1000.show = true; |
| | | //this.grid_3000.show = true; |