| | |
| | | }); |
| | | map.addLayer(geoJsonLayer); |
| | | } |
| | | <<<<<<< HEAD |
| | | debugger; |
| | | //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); |
| | | ======= |
| | | |
| | | >>>>>>> 165c834d414f2c5f56ad6d259b5f18c26921cc94 |
| | | } |
| | | |
| | |
| | | |
| | | function getGuokongPointFromServer(tmplayer) { |
| | | |
| | | $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1001_list&datatype=" + mars3d.global_variables.queryDataType + "&datatime=" + mars3d.global_variables.queryDataTStart + "&qindex=pm25&pageno=1&pagesize=1000", (result) => { |
| | | $.getJSON(mars3d.global_variables.nodejs_url_predix + "dataapi/Bdata?bid=get_1001_list&datatype=" + mars3d.global_variables.queryDataType + "&datatime=" + mars3d.global_variables.queryDataTStart + "®ionCode="+mars3d.global_variables.regionCode+"&qindex=pm25&pageno=1&pagesize=1000", (result) => { |
| | | data_list_1001 = result.data.result; |
| | | addGuokongPointResutToLayer(tmplayer, result.data.result); |
| | | }); |
| | |
| | | |
| | | //加载count |
| | | function loadCountByUserid() { |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_all_count_by_id&userid=" + thisWidget.userid; |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_all_count_by_id&userid=" + thisWidget.userid + "®ionCode="+mars3d.global_variables.regionCode; |
| | | $.ajax({ |
| | | type: 'get', |
| | | dataType: 'json', |
| | |
| | | error: function (request, textStatus) { |
| | | } |
| | | }); |
| | | var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatype=" + thisWidget.datatype + "&datatime="+ thisWidget.datatime; |
| | | var backend_url_taxi = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_count_all&datatype=" + thisWidget.datatype + "&datatime="+ thisWidget.datatime+"regionCode"+mars3d.global_variables.regionCode; |
| | | $.ajax({ |
| | | type: 'get', |
| | | dataType: 'json', |
| | |
| | | function reloadData(page){ |
| | | $("#searchInfo").empty(); |
| | | var avgnam = 30; //每页显示个数 |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_" + current_selected_monitor_type + "_list_keyword&datatype=" + thisWidget.datatype + "&datatime=" + thisWidget.datatime +"&userid=" + thisWidget.userid+ "&qindex=" + current_selected_monitor_qindex +"&keyword=" + current_selected_monitor_keyword + "&pageno="+page+"&pagesize="+avgnam; |
| | | var backend_url = thisWidget.nodejs_url_predix + "dataapi/Bdata?bid=get_" + current_selected_monitor_type + "_list_keyword&datatype=" + thisWidget.datatype |
| | | + "&datatime=" + thisWidget.datatime +"&userid=" + thisWidget.userid+ "&qindex=" + current_selected_monitor_qindex |
| | | + "&keyword=" + current_selected_monitor_keyword + "&pageno="+page+"&pagesize="+avgnam |
| | | + "regionCode="+mars3d.global_variables.regionCode; |
| | | $.ajax({ |
| | | type:"GET", |
| | | url:backend_url, |