"use script"; //开发环境建议开启严格模式
//系统 功能入口
function getDefaultDateTime() {
var date = new Date;
date.setHours(date.getHours() - 2);
var year = date.getFullYear();//年
var month = date.getMonth();//月
var day = date.getDate();//日
var hours = date.getHours();//时
return year + "-" +
((month + 1) > 9 ? (month + 1) : "0" + (month + 1)) + "-" +
(day > 9 ? day : ("0" + day)) + " " +
(hours > 9 ? hours : ("0" + hours)) + ":00:00";
}
<<<<<<< HEAD
// console.log(mars3d.global_variables);
mars3d.global_variables = { geoserver_url_predix: 'http://58.246.27.194:7011/', userid: 2, queryDataType: 'hour' };
mars3d.global_variables.queryDataTStart = getDefaultDateTime();
mars3d.global_variables.queryDataTEnd = getDefaultDateTime();
mars3d.global_variables.layer1001_conifg={name:'国控点',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer1002_conifg={name:'微站',styleoptions:['pm25','pm10','no','no2','nox','co','p_01'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer1003_conifg={name:'监测点',styleoptions:['p_01'],selectedstyle:'p_01',show:false};
mars3d.global_variables.layer1005_conifg={name:'上海市道路',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100600_conifg={name:'机场',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100601_conifg={name:'码头',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100602_conifg={name:'环线',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100603_conifg={name:'工业园区',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100604_conifg={name:'进博会',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100605_conifg={name:'边界',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100607_conifg={name:'宝山圈',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100610_conifg={name:'行政区',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer100611_conifg={name:'街道',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer1000_conifg={name:'网格图层1000',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
mars3d.global_variables.layer5000_conifg={name:'网格图层5000',styleoptions:['pm25','pm10','no','no2','nox','co'],selectedstyle:'pm25',show:false};
// mars3d.reloadLayers = function (layerid){
// if (layerid == 100611) {
// addJiedaoLayer();
// }
// };
=======
mars3d.global_variables = { geoserver_url_predix: 'http://58.246.27.194:7011/', nodejs_url_predix: 'http://58.246.27.194:7012/', userid: 2, queryDataType: 'hour' };
mars3d.global_variables.queryDataTStart = getDefaultDateTime();
mars3d.global_variables.queryDataTEnd = getDefaultDateTime();
function initLayersByUserid() {
//addMaskShanghai();
addTDTAnnoLayer();
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
$.getJSON("data/getLayerListByUserid.json", { userid: mars3d.global_variables.userid }, (result) => {
result.data.forEach((item) => {
if ([item['type']] == 'wms') {
addWMSLayer(item);
} else if ([item['type']] == 'wind') {
console.log('wind')
addWindLayer(item);
} else if ([item['type']] == 'div') {
addGuokongLayer(item);
} else if ([item['type']] == 'taxi') {
addTaxiLayer(item);
}
});
});
}
function addWMSLayer(item) {
var wmsLyer = new mars3d.layer.WmsLayer({
id: item.id,
pid: item.pid,
name: item.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix + "/geoserver/konglu_58/wms",
layers: "konglu_58:" + item.geoname_prefix + mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles": item.style_prefix + item.styleoptions[0],
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
center: { "lat": 30.487351, "lng": 121.613269, "alt": 54033, "heading": 359, "pitch": -40 },
noCenter: true,
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: item.show,
geoname_prefix: item.geoname_prefix,
style_prefix: item.style_prefix,
style_options: item.styleoptions,
flyTo: false
});
//单击事件
wmsLyer.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(wmsLyer);
}
function addGuokongLayer(item) {
<<<<<<< HEAD
let Layer = map.getLayerById(1001);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
layer_1001_guokong = new mars3d.layer.DivLayer({
id:1001,
name: mars3d.global_variables.layer1001_conifg.name,
pid: 99, //图层管理 中使用,父节点id
selectedMapStyleOptions: mars3d.global_variables.layer1001_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer1001_conifg.styleoptions,
show:mars3d.global_variables.layer1001_conifg.show,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer1001_conifg.show);
mars3d.global_variables.layer1001_conifg.selectedstyle = new_style;
addguokongLayers();
}
=======
var guokongLayer = new mars3d.layer.DivLayer({
id: item.id,
pid: item.pid, //图层管理 中使用,父节点id
name: item.name,
style_options: item.styleoptions
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
map.addLayer(guokongLayer);
guokongLayer.on(mars3d.EventType.click, function (event) {
console.log("监听layer,单击了矢量对象", event);
console.log(event.graphic?.attr)
var item = event.graphic?.attr;
//haoutil.msg('单击了:' + item['高校名称'])
});
guokongLayer.bindPopup(function (event) {
let item = event.graphic?.attr;
var html =
"站点名称:" +
item["SiteName"] +
"
分区:" +
item["RegionName"] +
"
AQI:" +
item["AQI"] +
"
PM25:" +
item["PM25"] + "ug/m3" +
"
SO2:" +
item["SO2"] + "ug/m3" +
"
O3:" +
item["O31"] + "ug/m3" +
"
详细信息
";
return html;
});
// add 国控点
$.getJSON("http://58.246.27.194:7012/dataapi/Bdata?bid=get_1001_list_"+mars3d.global_variables.queryDataType+"&datatime="+mars3d.global_variables.queryDataTStart+"&qindex="+mars3d.global_variables.layer1001_conifg.selectedstyle, (result) => {
var pointColorArr = ["#f33349", "#fff000", "#33347f"];
for (var i = 0, len = result.data.result.length; i < len; i++) {
var item = result.data.result[i];
var jd = result.data.result[i].Longitude;
var wd = result.data.result[i].Latitude;
var clr = pointColorArr[i % pointColorArr.length];
var graphic = new mars3d.graphic.DivLightPoint({
position: Cesium.Cartesian3.fromDegrees(jd, wd),
style: {
color: clr,
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
highlight: {
type: "divLightPoint",
diffHeight: 600,
material: mars3d.MaterialUtil.createMaterialProperty(mars3d.MaterialType.CircleWave, {
color: "#ffff00",
count: 3,
speed: 20,
}),
},
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 200000), //按视距距离显示
},
show: true,
attr: item,
});
guokongLayer.addGraphic(graphic);
}
});
}
function addWindLayer(item) {
<<<<<<< HEAD
let Layer = map.getLayerById(1002);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_1002_weizhan = new mars3d.layer.WmsLayer({
id:1002,
pid: 99,
name: mars3d.global_variables.layer1002_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"/geoserver/konglu_58/wms",
layers: "konglu_58:vis_weizhan_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles": "point_weizhan_"+mars3d.global_variables.layer1002_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.429987, "lng": 121.590473, "alt": 58635, "heading": 359, "pitch": -40 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "click",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer1002_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer1002_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer1002_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer1002_conifg.show);
mars3d.global_variables.layer1002_conifg.selectedstyle = new_style;
addWeizhanLayer();
}
});
//单击事件
layer_1002_weizhan.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
=======
$.getJSON("data/getWindParametersByTime.json", { datatype: mars3d.global_variables.queryDataType, datatime: mars3d.global_variables.queryDataTStart }, (result) => {
console.log(result);
var layer_wind = new mars3d.layer.CanvasWindLayer({
id: item.id,
pid: item.pid,
name: item.name,
color: item.color,
frameRate: 20, //每秒刷新次数
speedRate: 60, //风前进速率
particlesNumber: 1000,
maxAge: 60,
lineWidth: 1,
reverseY: true
});
layer_wind.show = item.show;
map.addLayer(layer_wind);
layer_wind.data = convertWindData(result.data);
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
}
function convertWindData(arr) {
var arrU = [];
var arrV = [];
var xmin = arr[0].x;
var xmax = arr[0].x;
var ymin = arr[0].y;
var ymax = arr[0].y;
<<<<<<< HEAD
let Layer = map.getLayerById(1003);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_1003_jiance = new mars3d.layer.WmsLayer({
id:1003,
pid: 99,
name: mars3d.global_variables.layer1003_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"/geoserver/konglu_58/wms",
layers: "konglu_58:vis_weizhan_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"Styles": "point_jiance_"+mars3d.global_variables.layer1003_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.429987, "lng": 121.590473, "alt": 58635, "heading": 359, "pitch": -40 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer1003_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer1003_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer1003_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer1003_conifg.show);
mars3d.global_variables.layer1003_conifg.selectedstyle = new_style;
addJianceLayer();
}
});
=======
// 风向是以y轴正方向为零度顺时针转,0度表示北风。90度表示东风。
// u表示经度方向上的风,u为正,表示西风,从西边吹来的风。
// v表示纬度方向上的风,v为正,表示南风,从南边吹来的风。
for (let i = 0, len = arr.length; i < len; i++) {
const item = arr[i];
if (xmin > item.x) {
xmin = item.x;
}
if (xmax < item.x) {
xmax = item.x;
}
if (ymin > item.y) {
ymin = item.y;
}
if (ymax < item.y) {
ymax = item.y;
}
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
var u = mars3d.WindUtil.getU(item.speed, item.dir);
arrU.push(u);
var v = mars3d.WindUtil.getV(item.speed, item.dir);
arrV.push(v);
}
var rows = getKeyNumCount(arr, "y"); //计算 行数
var cols = getKeyNumCount(arr, "x"); //计算 列数
return {
xmin: xmin,
xmax: xmax,
ymax: ymax,
ymin: ymin,
rows: rows,
cols: cols,
udata: arrU, //横向风速
vdata: arrV, //纵向风速
};
}
function getKeyNumCount(arr, key) {
var obj = {};
arr.forEach((item) => {
obj[item[key]] = true;
});
var count = 0;
for (let col in obj) {
count++;
}
return count;
}
<<<<<<< HEAD
let Layer = map.getLayerById(1005);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_1005_roadsection = new mars3d.layer.WmsLayer({
id:1005,
pid: 99,
name:mars3d.global_variables.layer1005_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_roadsection_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"Styles": "polyline_road_"+mars3d.global_variables.layer1005_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.487351, "lng": 121.613269, "alt": 54033, "heading": 359, "pitch": -40 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer1005_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer1005_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer1005_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer1005_conifg.show);
mars3d.global_variables.layer1005_conifg.selectedstyle = new_style;
addRoadLayer();
}
=======
function addTaxiLayer(item) {
map.clock.shouldAnimate = true;
map.clock.startTime = Cesium.JulianDate.fromDate(new Date("2021-07-01 10:00:00"));
map.clock.currentTime = Cesium.JulianDate.fromDate(new Date("2021-07-01 10:00:00"));
map.clock.stopTime = Cesium.JulianDate.fromDate(new Date("2021-07-01 10:15:00"));
map.clock.multiplier = 5.0;
map.clock.clockRange = Cesium.ClockRange.LOOP_STOP;
var taxi_layer = new mars3d.layer.GraphicLayer({
id: item.id,
name: item.name,
pid: item.pid, //图层管理 中使用,父节点id
center: { "lat": 30.62156, "lng": 121.44918, "alt": 48716, "heading": 359, "pitch": -40 },
noCenter: true,
show: true,
onWidget: "widgetsTS/taxi_layer_setting/widget.js",
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
map.addLayer(taxi_layer);
taxi_layer.on(mars3d.EventType.click, function (event) {
console.log("监听layer,单击了矢量对象", event);
var item = event.graphic?.attr;
});
taxi_layer.bindPopup(function (event) {
let item = event.graphic?.attr;
var html =
"
类型: " +
item["code"].substring(0, 2) == "BS" ? "公交车" : "出租车" +
"
车辆编号: " +
item["code"] +
"
数据时间: " +
item["datatime"] +
"
瞬时车速: " +
item["speed"] + " (km/h)" +
"
粉尘PM2.5: " +
item["pm25"] + " (ug/m3)" +
"
粉尘PM10: " +
item["pm10"] + " (ug/m3)" +
"
NO浓度: " +
item["no"] + " (ug/m3)" +
"
NO2浓度: " +
item["no2"] + " (ug/m3)" +
"
NO+NO2浓度: " +
item["nox"] + " (ug/m3)" +
"
CO浓度值: " +
item["co"] + " (mg/m3)" +
"
历史轨迹回放
";
return html;
});
$.getJSON("http://58.246.27.194:7012/dataapi/Bdata?bid=get_1004_list_by_userid&userid=2", (result) => {
for (var i = 0, len = result.data.result.length; i < len; i++) {
let item = result.data.result[i];
addItemToLayer(item, taxi_layer);
}
});
}
function addItemToLayer(item, target_layer) {
$.getJSON("http://58.246.27.194:7012/dataapi/Bdata?bid=get_1004_single_path&siteid=" + item["code"], {
datatime1: "2021-07-01 10:00:00",
datatime2: "2021-07-01 10:15:00"
}, (result) => {
if (result.data.result.length > 0) {
var tmpPositionProperty = new Cesium.SampledPositionProperty();
for (var i = 0, len = result.data.result.length; i < len; i++) {
let item = result.data.result[i];
//console.log(item);
tmpPositionProperty.addSample(Cesium.JulianDate.fromDate(new Date(item["datatime"])), Cesium.Cartesian3.fromDegrees(item["lon"], item["lat"], 0.2))
}
let graphic = new mars3d.graphic.ModelEntity({
attr: result.data.result[0],
style: {
url: "gltf/" + (item["code"]).substring(0, 2) + ".gltf",
scale: 0.5,
minimumPixelSize: 20,
highlight: {
type: mars3d.EventType.click,
silhouette: true,
silhouetteColor: "#ff0000",
silhouetteSize: 4,
},
label: {
//不需要文字时,去掉label配置即可
text: item["code"],
font_size: 16,
// TODO need to be changed according to qindex color.
color: "#ff00ff",
outline: true,
outlineColor: "#000000",
pixelOffsetY: -20,
distanceDisplayCondition: true,
distanceDisplayCondition_far: 50000,
distanceDisplayCondition_near: 0,
},
},
});
graphic.position = tmpPositionProperty;
target_layer.addGraphic(graphic);
}
});
}
function reLoadLayers() {
var layers = map.getLayers({ layers: true });
layers.forEach((layer) => {
console.log(layer.name+":"+layer.type);
<<<<<<< HEAD
let Layer = map.getLayerById(100600);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100600_jichang = new mars3d.layer.WmsLayer({
id:100600,
pid: 1006,
name:mars3d.global_variables.layer100600_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100600_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles": "polygon_region_"+mars3d.global_variables.layer1005_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.756467, "lng": 121.614552, "alt": 73242, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100600_conifg.show,
selectedMapStyleOptions:mars3d.global_variables.layer100600_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100600_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100600_conifg.show);
mars3d.global_variables.layer100600_conifg.selectedstyle = new_style;
addJichangLayer();
}
});
//单击事件
layer_100600_jichang.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_100600_jichang);
}
function addMatouLayer() {
let Layer = map.getLayerById(100601);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100601_matou = new mars3d.layer.WmsLayer({
id:100601,
pid: 1006,
name: mars3d.global_variables.layer100601_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100601_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"Styles": "polygon_region_"+mars3d.global_variables.layer100601_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.577234, "lng": 121.664644, "alt": 84121, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100601_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100601_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100601_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100601_conifg.show);
mars3d.global_variables.layer100601_conifg.selectedstyle = new_style;
addMatouLayer();
}
});
=======
if ([layer.type] == 'wms') {
layer.options.layers = "konglu_58:" + layer.options.geoname_prefix + mars3d.global_variables.queryDataType;
layer.options.parameters.viewparams = "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart;
layer.reload();
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
}
});
}
<<<<<<< HEAD
function addHuanxianLayer() {
let Layer = map.getLayerById(100602);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100602_huanxian = new mars3d.layer.WmsLayer({
id:100602,
pid: 1006,
name: mars3d.global_variables.layer100602_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100602_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"Styles": "polygon_region_"+mars3d.global_variables.layer100602_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.687288, "lng": 121.623785, "alt": 88144, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100602_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100602_conifg.selectedstyle,
hasMapStyleOptions:mars3d.global_variables.layer100602_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100602_conifg.show);
mars3d.global_variables.layer100602_conifg.selectedstyle = new_style;
addHuanxianLayer();
}
});
//单击事件
layer_100602_huanxian.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_100602_huanxian);
=======
function refreshWidgets() {
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
}
function addTDTAnnoLayer() {
<<<<<<< HEAD
function addYuanyuLayer() {
let Layer = map.getLayerById(100603);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100603_yuanqu = new mars3d.layer.WmsLayer({
id:100603,
pid: 1006,
name: mars3d.global_variables.layer100603_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100603_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"polygon_region_"+mars3d.global_variables.layer100603_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.393398, "lng": 121.534777, "alt": 91038, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100603_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100603_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100603_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100603_conifg.show);
mars3d.global_variables.layer100603_conifg.selectedstyle = new_style;
addYuanyuLayer();
}
=======
Img_annoTileLayer = new mars3d.layer.TdtLayer({
name: "影像注记",
layer: "img_z",
key: mars3d.Token.tiandituArr,
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
Img_annoTileLayer.show = false;
Img_annoTileLayer.pid = 50;
map.addLayer(Img_annoTileLayer);
Vec_annoTileLayer = new mars3d.layer.TdtLayer({
name: "矢量图注记",
layer: "vec_z",
key: mars3d.Token.tiandituArr,
});
Vec_annoTileLayer.show = false;
Vec_annoTileLayer.pid = 50;
map.addLayer(Vec_annoTileLayer);
}
function addfunctionLayers() {
<<<<<<< HEAD
let Layer = map.getLayerById(100604);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100604_jinbo = new mars3d.layer.WmsLayer({
id:100604,
pid: 1006,
name: mars3d.global_variables.layer100604_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100604_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"polygon_region_"+mars3d.global_variables.layer100604_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.839605, "lng": 121.372945, "alt": 52000, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100604_conifg.show,
selectedMapStyleOptions:mars3d.global_variables.layer100604_conifg.selectedstyle,
hasMapStyleOptions:mars3d.global_variables.layer100604_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100604_conifg.show);
mars3d.global_variables.layer100604_conifg.selectedstyle = new_style;
addJinboLayer();
}
=======
layer_1001_guokong = new mars3d.layer.DivLayer({
name: '国控点',
pid: 99, //图层管理 中使用,父节点id
show: false
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
map.addLayer(layer_1001_guokong);
layer_1001_guokong.on(mars3d.EventType.click, function (event) {
console.log("监听layer,单击了矢量对象", event);
console.log(event.graphic?.attr)
var item = event.graphic?.attr;
//haoutil.msg('单击了:' + item['高校名称'])
<<<<<<< HEAD
let Layer = map.getLayerById(100605);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100605_bianjie = new mars3d.layer.WmsLayer({
id:100605,
pid: 1006,
name: mars3d.global_variables.layer100605_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100605_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"polygon_region_"+mars3d.global_variables.layer100605_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.880665, "lng": 121.305298, "alt": 69363, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100605_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100605_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100605_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100605_conifg.show);
mars3d.global_variables.layer100605_conifg.selectedstyle = new_style;
addBianjieLayer();
}
=======
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
layer_1001_guokong.bindPopup(function (event) {
let item = event.graphic?.attr;
var html =
"高校名称:" +
item["高校名称"] +
"
所属地区:" +
item["地区"] +
"
主管部门:" +
item["主管部门"] +
"
办学层次:" +
item["办学层次"] +
"
王牌专业:" +
item["王牌专业"] +
"
详细信息
";
return html;
});
// add 国控点
//显示高校点
$.getJSON("//data.mars3d.cn/file/apidemo/gaoxiao.json", (result) => {
var pointColorArr = ["#f33349", "#f79a2c", "#f2fa19", "#95e40c", "#1ffee6"];
for (var i = 0, len = result.length; i < len; i++) {
var item = result[i];
var jwd = item["经纬度"].split(",");
if (jwd.length !== 2) {
continue;
}
var jd = Number(jwd[0]);
var wd = Number(jwd[1]);
var clr = pointColorArr[i % pointColorArr.length];
<<<<<<< HEAD
let Layer = map.getLayerById(100607);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100607_quan = new mars3d.layer.WmsLayer({
id:100607,
pid: 1006,
name: mars3d.global_variables.layer100607_conifg.name,
type: "wms",
url:mars3d.global_variables.geoserver_url_predix +"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100607_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"polygon_region_"+mars3d.global_variables.layer100607_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.736361, "lng": 121.566128, "alt": 83811, "heading": 360, "pitch": -56 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100607_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100607_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100607_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100607_conifg.show);
mars3d.global_variables.layer100607_conifg.selectedstyle = new_style;
addQuanLayer();
}
});
=======
var graphic = new mars3d.graphic.DivGraphic({
position: Cesium.Cartesian3.fromDegrees(jd, wd),
style: {
html: '',
//html: '',
distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 200000), //按视距距离显示
},
attr: item,
});
layer_1001_guokong.addGraphic(graphic);
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
}
});
}
function addRoadLayer() {
let Layer = map.getLayerById(100610);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
<<<<<<< HEAD
layer_100610_qu = new mars3d.layer.WmsLayer({
id:100610,
pid: 1006,
name: mars3d.global_variables.layer100610_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100610_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles": "polygon_region_"+ mars3d.global_variables.layer100610_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.594533, "lng": 121.581681, "alt": 93405, "heading": 359, "pitch": -61 },
=======
layer_1006_roadsection = new mars3d.layer.WmsLayer({
pid: 99,
name: "上海市道路",
type: "wms",
url: "http://58.246.27.194:7011/geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100601_hour",
crs: "EPSG:4326",
parameters: {
"transparent": "true",
"format": "image/png"
},
center: { "lat": 31.162801, "lng": 121.543277, "alt": 50000, "heading": 359.2, "pitch": -39.5 },
"noCenter": true,
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
<<<<<<< HEAD
show: mars3d.global_variables.layer100610_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100610_conifg.selectedstyle,
hasMapStyleOptions:mars3d.global_variables.layer100610_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100610_conifg.show);
mars3d.global_variables.layer100610_conifg.selectedstyle = new_style;
addXinzhenquLayer();
}
});
//单击事件
layer_100610_qu.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_100610_qu);
}
function addJiedaoLayer() {
let Layer = map.getLayerById(100611);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
//方式2:在创建地球后调用addLayer添加图层(直接new对应type类型的图层类)
layer_100611_jiedao = new mars3d.layer.WmsLayer({
id: 100611,
pid: 1006,
name: mars3d.global_variables.layer100611_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix + "geoserver/konglu_58/wms",
layers: "konglu_58:vis_region_100611_" + mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"Styles": "polygon_region_" + mars3d.global_variables.layer100611_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "userid:" + mars3d.global_variables.userid + ";datatime:" + mars3d.global_variables.queryDataTStart
},
// center: { "lat": 30.466245, "lng": 121.562803, "alt": 107679, "heading": 356, "pitch": -58 },
getFeatureInfoParameters: {
feature_count: 10
},
//单击高亮及其样式
highlight: {
type: "wallP",
diffHeight: 300,
material: mars3d.MaterialUtil.createMaterial(mars3d.MaterialType.LineFlow, {
image: "img/textures/fence.png",
color: "#ffff00",
speed: 10, //速度,建议取值范围1-100
axisY: true,
}),
},
popup: "all",
show: mars3d.global_variables.layer100611_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer100611_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer100611_conifg.styleoptions,
flyTo: false,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer100611_conifg.show);
mars3d.global_variables.layer100611_conifg.selectedstyle = new_style;
addJiedaoLayer();
}
=======
show: false,
flyTo: false
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
});
console.log(layer_100611_jiedao.show);
//单击事件
layer_1006_roadsection.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_1006_roadsection);
}
function addMaskShanghai() {
//geojson 合肥边界线
geoJsonLayer = new mars3d.layer.GeoJsonLayer({
url: "//data.mars3d.cn/file/geojson/areas/340100.json",
mask: true, //标识为遮罩层【重点参数】
symbol: {
styleOptions: {
fill: true,
color: "rgb(2,26,79)",
opacity: 0.9,
outline: false,
outlineColor: "#39E09B",
outlineWidth: 8,
outlineOpacity: 0.8,
arcType: Cesium.ArcType.GEODESIC,
clampToGround: true,
},
},
});
map.addLayer(geoJsonLayer);
}
<<<<<<< HEAD
function addGrid5Layers() {
let Layer = map.getLayerById(5000);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
layer_grid_5000 = new mars3d.layer.WmsLayer({
id:5000,
pid: 99,
name: mars3d.global_variables.layer5000_conifg.name,
type: "wms",
url: mars3d.global_variables.geoserver_url_predix+"geoserver/konglu_58/wms",
layers: "konglu_58:vis_grid5000_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"vis_grid100_1000_5000_"+mars3d.global_variables.layer5000_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "datatime:" + mars3d.global_variables.queryDataTStart
},
show: mars3d.global_variables.layer5000_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer5000_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer5000_conifg.styleoptions,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer5000_conifg.show);
mars3d.global_variables.layer5000_conifg.selectedstyle = new_style;
addGrid5Layers();
}
});
map.addLayer(layer_grid_5000);
layer_grid_5000.reloadLayers = function () {
layer_grid_5000.options.layers = "konglu_58:vis_grid5000_day";
layer_grid_5000.options.parameters.sld = "http://127.0.0.1:8080/geoserver/styles/" + layer_grid_5000.options.selectedMapStyleOptions + ".sld";
layer_grid_5000.options.parameters.viewparams = "id1:0;id2:10";
console.log(layer_grid_5000);
layer_grid_5000.reload();
}
//单击事件
layer_grid_5000.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_grid_5000);
}
function addGrid1Layers() {
let Layer = map.getLayerById(1000);
if (Layer) {
mars3d.global_variables.layer1002_conifg.show = Layer.options.show;
map.removeLayer(Layer, true);
Layer = null;
};
layer_grid_1000 = new mars3d.layer.WmsLayer({
id:1000,
pid: 99,
name: mars3d.global_variables.layer1000_conifg.name,
type: "wms",
url:mars3d.global_variables.geoserver_url_predix +"geoserver/konglu_58/wms",
layers: "konglu_58:vis_grid1000_"+mars3d.global_variables.queryDataType,
crs: "EPSG:4326",
parameters: {
"styles":"vis_grid100_1000_5000_"+mars3d.global_variables.layer1000_conifg.selectedstyle,
"transparent": "true",
"format": "image/png",
"viewparams": "datatime:" + mars3d.global_variables.queryDataTStart
},
show: mars3d.global_variables.layer1000_conifg.show,
selectedMapStyleOptions: mars3d.global_variables.layer1000_conifg.selectedstyle,
hasMapStyleOptions: mars3d.global_variables.layer1000_conifg.styleoptions,
reloadLayers:function(new_style){
console.log(new_style);
console.log(mars3d.global_variables.layer1000_conifg.show);
mars3d.global_variables.layer1000_conifg.selectedstyle = new_style;
addGrid1Layers();
}
});
map.addLayer(layer_grid_1000);
layer_grid_1000.reloadLayers = function () {
layer_grid_1000.options.layers = "konglu_58:vis_grid1000_day";
layer_grid_1000.options.parameters.sld = "http://127.0.0.1:8080/geoserver/styles/" + layer_grid_1000.options.selectedMapStyleOptions + ".sld";
layer_grid_1000.options.parameters.viewparams = "id1:0;id2:10";
console.log(layer_grid_1000);
layer_grid_1000.reload();
}
//单击事件
layer_grid_1000.on(mars3d.EventType.click, function (event) {
console.log("单击了矢量数据,共" + event.features.length + "条", event);
});
map.addLayer(layer_grid_1000);
}
=======
>>>>>>> ac8a0efbbe8ae8ccba1bb7ecfb8098b780eca010
function addFunctionalLayers() {
}
function showDetail(layerid, itemCode) {
haoutil.msg('单击了:' + layerid + ',' + itemCode);
if (mars3d.widget.isActivate("widgetsTS/qyDetailsView/widget.js")) {
var detailWiget = mars3d.widget.getClass("widgetsTS/qyDetailsView/widget.js");
detailWiget.showSPJK();
} else {
mars3d.widget.activate({
uri: "widgetsTS/qyDetailsView/widget.js",
dataQy: itemCode,
});
}
}