|
@@ -656,6 +656,11 @@
|
|
};
|
|
};
|
|
if (item.deviceType == 1) { // 水质传感器
|
|
if (item.deviceType == 1) { // 水质传感器
|
|
markersMap.icon = "sj-icon-map-centerdata_water_quality_sensor";
|
|
markersMap.icon = "sj-icon-map-centerdata_water_quality_sensor";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_water_quality_sensor";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-water-quality-sensor";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
@@ -697,10 +702,26 @@
|
|
|
|
|
|
} else if (item.deviceType == '002') { // 水尺
|
|
} else if (item.deviceType == '002') { // 水尺
|
|
markersMap.icon = "sj-icon-map-centerdata_water_gauge";
|
|
markersMap.icon = "sj-icon-map-centerdata_water_gauge";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_water_gauge";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-water-gauge";
|
|
|
|
+ }
|
|
} else if (item.deviceType == '003') { // 水文监测设备
|
|
} else if (item.deviceType == '003') { // 水文监测设备
|
|
markersMap.icon = "sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
markersMap.icon = "sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-soil-monitoring-equipment";
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
|
|
+ }
|
|
} else if (item.deviceType == 2) { // 土壤监测设备
|
|
} else if (item.deviceType == 2) { // 土壤监测设备
|
|
markersMap.icon = "sj-icon-map-centerdata_soil_monitoring_equipment";
|
|
markersMap.icon = "sj-icon-map-centerdata_soil_monitoring_equipment";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_soil_monitoring_equipment";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-soil-monitoring-equipment";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
@@ -768,8 +789,18 @@
|
|
"</div>";
|
|
"</div>";
|
|
} else if (item.deviceType == 4) { // 病虫害监测站
|
|
} else if (item.deviceType == 4) { // 病虫害监测站
|
|
markersMap.icon = "sj-icon-map-centerdata_pest_and_disease_monitoring_station";
|
|
markersMap.icon = "sj-icon-map-centerdata_pest_and_disease_monitoring_station";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_pest_and_disease_monitoring_station";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-pest-and-disease-monitoring-station";
|
|
|
|
+ }
|
|
} else if (item.deviceType == 5) { // 大气传感器
|
|
} else if (item.deviceType == 5) { // 大气传感器
|
|
markersMap.icon = "sj-icon-map-centerdata_atmospheric_sensor";
|
|
markersMap.icon = "sj-icon-map-centerdata_atmospheric_sensor";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_atmospheric_sensor";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-atmospheric-sensor";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
@@ -810,6 +841,11 @@
|
|
"</div>";
|
|
"</div>";
|
|
} else if (item.deviceType == 6) { // 水压传感器
|
|
} else if (item.deviceType == 6) { // 水压传感器
|
|
markersMap.icon = "sj-icon-map-centerdata_water_pressure_sensor";
|
|
markersMap.icon = "sj-icon-map-centerdata_water_pressure_sensor";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_water_pressure_sensor";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-water-pressure-sensor";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|
|
@@ -861,6 +897,11 @@
|
|
} else if (item.deviceType == 7) //水流速传感器
|
|
} else if (item.deviceType == 7) //水流速传感器
|
|
{
|
|
{
|
|
markersMap.icon = "sj-icon-map-centerdata_water_flow_rate";
|
|
markersMap.icon = "sj-icon-map-centerdata_water_flow_rate";
|
|
|
|
+ if(item.workingStatus == '0'){// 在线
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata_water_flow_rate";
|
|
|
|
+ }else {// 离线
|
|
|
|
+ markersMap.icon = "sj-icon-map-not-centerdata-water-flow-rate";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
markersMap.bindPopupHtml += '<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
' <div class="d-l-con">' +
|
|
' <div class="d-l-con">' +
|