| | |
| | | var marker = new BMap.Marker(point, {icon: icon, offset: new BMap.Size(0, -20)}); |
| | | map.addOverlay(marker); |
| | | map.centerAndZoom(point, 16); |
| | | if (!$.isEmptyObject(dirPoint) && !$.isEmptyObject(getPollutionSourceData) && typeof (getPollutionSourceData["e6"]) != "undefined" && typeof (getPollutionSourceData["e7"]) != "undefined" && typeof (getPollutionSourceData["e18"]) != "undefined" && typeof (getPollutionSourceData["e23"]) != "undefined" && getPollutionSourceData["e18"] > 0.03) { |
| | | if (!$.isEmptyObject(dirPoint) && !$.isEmptyObject(getPollutionSourceData) && typeof (getPollutionSourceData["e6"]) != "undefined" && typeof (getPollutionSourceData["e7"]) != "undefined" && typeof (getPollutionSourceData["e18"]) != "undefined" && typeof (getPollutionSourceData["e23"]) != "undefined") { |
| | | var windSpeed = parseFloat(getPollutionSourceData["e18"]); |
| | | var windDir = parseFloat(getPollutionSourceData["e23"]); |
| | | var distance = windSpeed * 3600; |
| | | var distance = windSpeed * 3600>108? windSpeed * 3600:108; |
| | | var winDirStart = 255 - windDir; |
| | | var winDirEnd = 285 - windDir; |
| | | var marker1 = new BMap.Marker(EOffsetBearing(dirPoint, distance * 0.15, winDirStart), { |
| | |
| | | |
| | | $("#show").one('click', function () { |
| | | setTimeout(function () { |
| | | if ($.isEmptyObject(dirPoint) || $.isEmptyObject(getPollutionSourceData) || typeof (getPollutionSourceData["e6"]) == "undefined" || typeof (getPollutionSourceData["e7"]) == "undefined" || typeof (getPollutionSourceData["e18"]) == "undefined" || typeof (getPollutionSourceData["e23"]) == "undefined" || getPollutionSourceData["e18"] <= 0.03) { |
| | | if ($.isEmptyObject(dirPoint) || $.isEmptyObject(getPollutionSourceData) || typeof (getPollutionSourceData["e6"]) == "undefined" || typeof (getPollutionSourceData["e7"]) == "undefined" || typeof (getPollutionSourceData["e18"]) == "undefined" || typeof (getPollutionSourceData["e23"]) == "undefined") { |
| | | showNoData(); |
| | | } else { |
| | | var humidity = parseFloat(getPollutionSourceData["e6"]); |
| | |
| | | }); |
| | | map.addOverlay(lab); |
| | | |
| | | var distance = windSpeed * 3600; |
| | | var distance = windSpeed * 3600>108? windSpeed * 3600:108; |
| | | var winDirStartLeft = 240 - windDir; |
| | | var winDirEndLeft = 250 - windDir; |
| | | var winDirStartMiddle = 250 - windDir; |
| | |
| | | var winfowTextSource; |
| | | var supplement; |
| | | if (selectSensorKey == "臭氧") { |
| | | winfowTextCause = "<p style='height: 44px;line-height: 22px'>主要来源机动车尾气、燃煤电厂的排放氮氧化物,油漆油气挥发有机物在高温,阳光充足的照射下发生光化学烟雾</p>"; |
| | | winfowTextSource = "<p style='height: 22px;line-height: 22px'>Nox以及VOCs总量超标</p>"; |
| | | winfowTextCause = "<p style='height: 44px;line-height: 22px'>主要来源机动车尾气、燃煤排放氮氧化物,油漆油气挥发有机物在高温,阳光充足的照射下发生光化学烟雾</p>"; |
| | | winfowTextSource = "<p style='height: 22px;line-height: 22px'>NOx以及VOCs总量超标</p>"; |
| | | } else { |
| | | if (month == 12 || month == 1 || month == 2) { |
| | | if (windSpeed >= 3.4) { |