diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index a321fc2..19a9988 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -136,7 +136,7 @@ } } //添加热力图 - static addHeatMapLayer(layerId, geojson, value) { + static addHeatMapLayer(layerId, geojson, value, visible) { if (!newfiberMapbox.map.getLayer(layerId)) { newfiberMapbox.map.addSource(layerId, { type: 'geojson', @@ -146,6 +146,9 @@ id: layerId, type: 'heatmap', source: layerId, + layout: { + visibility: visible && visible == true ? 'visible' : 'none', + }, paint: { // Increase the heatmap weight based on frequency and property magnitude 'heatmap-weight': ['interpolate', ['linear'], ['get', value], 0, 0, 100, 1], @@ -444,7 +447,13 @@ } }); } - + //图层显示与隐藏 + static setLayerVisible(layer, visible) { + let layerShow = visible == true ? 'visible' : 'none'; + if (newfiberMapbox.map.getLayer(layer)) { + newfiberMapbox.map.setLayoutProperty(layer, 'visibility', layerShow); + } + } static remove3Dtiles() { newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index a321fc2..19a9988 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -136,7 +136,7 @@ } } //添加热力图 - static addHeatMapLayer(layerId, geojson, value) { + static addHeatMapLayer(layerId, geojson, value, visible) { if (!newfiberMapbox.map.getLayer(layerId)) { newfiberMapbox.map.addSource(layerId, { type: 'geojson', @@ -146,6 +146,9 @@ id: layerId, type: 'heatmap', source: layerId, + layout: { + visibility: visible && visible == true ? 'visible' : 'none', + }, paint: { // Increase the heatmap weight based on frequency and property magnitude 'heatmap-weight': ['interpolate', ['linear'], ['get', value], 0, 0, 100, 1], @@ -444,7 +447,13 @@ } }); } - + //图层显示与隐藏 + static setLayerVisible(layer, visible) { + let layerShow = visible == true ? 'visible' : 'none'; + if (newfiberMapbox.map.getLayer(layer)) { + newfiberMapbox.map.setLayoutProperty(layer, 'visibility', layerShow); + } + } static remove3Dtiles() { newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } diff --git a/src/views/oneMap/LayerControl/LayerControl.vue b/src/views/oneMap/LayerControl/LayerControl.vue index e649663..18d4a56 100644 --- a/src/views/oneMap/LayerControl/LayerControl.vue +++ b/src/views/oneMap/LayerControl/LayerControl.vue @@ -524,7 +524,7 @@ AllData.LayerData[0]['children'][0].layerVisible = false; AllData.LayerData[0]['children'][1].layerVisible = false; newfiberMapbox.map.setLayoutProperty('newfiber-XYZLayer', 'visibility', 'visible'); - newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer'); + newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer', 'buildingLayer-top'); } //分区类图层 if (item2.areaData) { @@ -538,8 +538,10 @@ if (item2.layerKey == 'buildingLayer') { if (item2.isCheck) { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'visible'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'visible'); } else { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'none'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'none'); } } //河堤岸线 diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index a321fc2..19a9988 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -136,7 +136,7 @@ } } //添加热力图 - static addHeatMapLayer(layerId, geojson, value) { + static addHeatMapLayer(layerId, geojson, value, visible) { if (!newfiberMapbox.map.getLayer(layerId)) { newfiberMapbox.map.addSource(layerId, { type: 'geojson', @@ -146,6 +146,9 @@ id: layerId, type: 'heatmap', source: layerId, + layout: { + visibility: visible && visible == true ? 'visible' : 'none', + }, paint: { // Increase the heatmap weight based on frequency and property magnitude 'heatmap-weight': ['interpolate', ['linear'], ['get', value], 0, 0, 100, 1], @@ -444,7 +447,13 @@ } }); } - + //图层显示与隐藏 + static setLayerVisible(layer, visible) { + let layerShow = visible == true ? 'visible' : 'none'; + if (newfiberMapbox.map.getLayer(layer)) { + newfiberMapbox.map.setLayoutProperty(layer, 'visibility', layerShow); + } + } static remove3Dtiles() { newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } diff --git a/src/views/oneMap/LayerControl/LayerControl.vue b/src/views/oneMap/LayerControl/LayerControl.vue index e649663..18d4a56 100644 --- a/src/views/oneMap/LayerControl/LayerControl.vue +++ b/src/views/oneMap/LayerControl/LayerControl.vue @@ -524,7 +524,7 @@ AllData.LayerData[0]['children'][0].layerVisible = false; AllData.LayerData[0]['children'][1].layerVisible = false; newfiberMapbox.map.setLayoutProperty('newfiber-XYZLayer', 'visibility', 'visible'); - newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer'); + newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer', 'buildingLayer-top'); } //分区类图层 if (item2.areaData) { @@ -538,8 +538,10 @@ if (item2.layerKey == 'buildingLayer') { if (item2.isCheck) { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'visible'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'visible'); } else { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'none'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'none'); } } //河堤岸线 diff --git a/src/views/oneMap/OverallOverview/RightBox.vue b/src/views/oneMap/OverallOverview/RightBox.vue index 5a44e1e..d8aa377 100644 --- a/src/views/oneMap/OverallOverview/RightBox.vue +++ b/src/views/oneMap/OverallOverview/RightBox.vue @@ -263,388 +263,6 @@ bus.emit('FxVisible', obj); // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['燃气视角']); - let heatMapList = [ - { lonlat: [109.4583517767791, 36.64045660187989], value: 2 }, - { lonlat: [109.45915900059231, 36.639564923076406], value: 1 }, - { lonlat: [109.46064074624108, 36.63888888248738], value: 3 }, - { lonlat: [109.46175090337006, 36.63763347376713], value: 4 }, - { lonlat: [109.46233801013652, 36.63722780459428], value: 5 }, - { lonlat: [109.46275737211255, 36.63718265184453], value: 3 }, - { lonlat: [109.46340039380915, 36.63601087211503], value: 2 }, - { lonlat: [109.4634842662043, 36.639796184662536], value: 3 }, - { lonlat: [109.46681120454784, 36.635965630684304], value: 2 }, - { lonlat: [109.46751014117459, 36.63303623297878], value: 3 }, - { lonlat: [109.46764992849988, 36.63236013419859], value: 4 }, - { lonlat: [109.46801337554575, 36.63082773329404], value: 5 }, - { lonlat: [109.4677058434299, 36.629971339150515], value: 6 }, - { lonlat: [109.46790154568534, 36.62897972679855], value: 4 }, - { lonlat: [109.46820907780108, 36.62758246914724], value: 5 }, - { lonlat: [109.46846069498666, 36.625914758136716], value: 3 }, - { lonlat: [109.46435094762097, 36.63127797375913], value: 3 }, - { lonlat: [109.46493805438743, 36.62726670999692], value: 3 }, - { lonlat: [109.46518967157303, 36.625959563646546], value: 3 }, - { lonlat: [109.45336366384743, 36.6337564188794], value: 3 }, - { lonlat: [109.45450991991531, 36.63114241494354], value: 3 }, - { lonlat: [109.4557680058435, 36.6292043657803], value: 3 }, - { lonlat: [109.4545099199152, 36.62609442354592], value: 3 }, - { lonlat: [109.45330774891703, 36.62532758190564], value: 3 }, - { lonlat: [109.45825622023474, 36.62505706236186], value: 3 }, - { lonlat: [109.46314877662232, 36.62532740431396], value: 3 }, - { lonlat: [109.44662591476458, 36.62744565667445], value: 3 }, - { lonlat: [109.44139786879603, 36.62974412708136], value: 3 }, - { lonlat: [109.43645036088442, 36.63126842378145], value: 3 }, - { lonlat: [109.43211670920196, 36.63081469982216], value: 3 }, - { lonlat: [109.42868355657039, 36.632810587611026], value: 3 }, - { lonlat: [109.41793384915036, 36.634987868433505], value: 3 }, - { lonlat: [109.40921026459482, 36.63444344378062], value: 3 }, - { lonlat: [109.46858692076272, 36.62110590039618], value: 3 }, - { lonlat: [109.47035661856971, 36.61995354263662], value: 3 }, - { lonlat: [109.47258171472353, 36.61892777347618], value: 3 }, - { lonlat: [109.47334332481641, 36.6208153097412], value: 35 }, - { lonlat: [109.47401900156899, 36.620127962636424], value: 45 }, - { lonlat: [109.47436575670645, 36.61957709339732], value: 43 }, - { lonlat: [109.47556013551343, 36.61923328226432], value: 4 }, - { lonlat: [109.47708842667508, 36.61754354976672], value: 5 }, - { lonlat: [109.47910474358588, 36.61661993861554], value: 6 }, - { lonlat: [109.47944089622014, 36.616364726231225], value: 6 }, - { lonlat: [109.47757869270369, 36.615731001159105], value: 6 }, - { lonlat: [109.47590065021183, 36.61525895943912], value: 7 }, - { lonlat: [109.47548213080846, 36.614904203510264], value: 6 }, - { lonlat: [109.47457696093612, 36.61451805927941], value: 6 }, - { lonlat: [109.47548213080833, 36.61421038003272], value: 6 }, - { lonlat: [109.476835019112, 36.613808538791], value: 4 }, - { lonlat: [109.47752606277787, 36.61309282379784], value: 4 }, - { lonlat: [109.478197640425, 36.61383660779872], value: 5 }, - { lonlat: [109.47888868409086, 36.61442345137025], value: 6 }, - { lonlat: [109.47862589283756, 36.61518291568912], value: 4 }, - { lonlat: [109.47945319863473, 36.61438874695218], value: 4 }, - { lonlat: [109.48037783452571, 36.61392413291535], value: 4 }, - { lonlat: [109.48066009179765, 36.613381048298066], value: 33 }, - { lonlat: [109.47880108700613, 36.613057670788265], value: 33 }, - { lonlat: [109.47672795600828, 36.61215362328269], value: 3 }, - { lonlat: [109.47235706714471, 36.608714319110575], value: 33 }, - { lonlat: [109.47095953066176, 36.60900989208619], value: 33 }, - { lonlat: [109.47242414889578, 36.60820574067667], value: 33 }, - { lonlat: [109.47080300657555, 36.60720326624053], value: 44 }, - { lonlat: [109.46960671534613, 36.60677769970712], value: 4 }, - { lonlat: [109.4667110197535, 36.60586535117448], value: 54 }, - { lonlat: [109.46634207012195, 36.60571021211726], value: 65 }, - { lonlat: [109.48124809033756, 36.61305208261769], value: 4 }, - { lonlat: [109.48183684833916, 36.61249083700314], value: 4 }, - { lonlat: [109.48355078829951, 36.611592045362464], value: 4 }, - { lonlat: [109.4836162058552, 36.611030788941534], value: 4 }, - { lonlat: [109.48472830430275, 36.6098155271458], value: 4 }, - { lonlat: [109.4848983899476, 36.60950742186193], value: 4 }, - { lonlat: [109.48548714794921, 36.61046512927026], value: 4 }, - { lonlat: [109.48597123786165, 36.60922876138633], value: 4 }, - { lonlat: [109.48645532777408, 36.60856200129905], value: 4 }, - { lonlat: [109.48743659111014, 36.60781084557607], value: 4 }, - { lonlat: [109.48792068102257, 36.607355049157874], value: 5 }, - { lonlat: [109.48809076666744, 36.60711022678964], value: 5 }, - { lonlat: [109.48710950333127, 36.60684430590222], value: 5 }, - { lonlat: [109.48636374319577, 36.60624081857617], value: 5 }, - { lonlat: [109.48535859229459, 36.605997022060514], value: 28 }, - { lonlat: [109.48571114675235, 36.60507741447555], value: 26 }, - { lonlat: [109.4869629705518, 36.60486639408042], value: 32 }, - { lonlat: [109.48860822468815, 36.60652068303526], value: 43 }, - { lonlat: [109.48959435527298, 36.606639238856765], value: 33 }, - { lonlat: [109.49055507792285, 36.60707599046411], value: 23 }, - { lonlat: [109.49062150122646, 36.606453011511526], value: 43 }, - { lonlat: [109.4906824296868, 36.607181292824684], value: 23 }, - { lonlat: [109.49173098572089, 36.60668830758674], value: 43 }, - { lonlat: [109.49338196262373, 36.60598188730296], value: 56 }, - { lonlat: [109.49414496601992, 36.605639090280604], value: 55 }, - { lonlat: [109.49287133727367, 36.60487615143745], value: 55 }, - { lonlat: [109.49244041494259, 36.604467862285254], value: 55 }, - { lonlat: [109.49361186903214, 36.604247271956666], value: 55 }, - { lonlat: [109.49395592159959, 36.603945994095234], value: 55 }, - { lonlat: [109.49451061859614, 36.603633392114766], value: 55 }, - { lonlat: [109.49505127263073, 36.603150944228496], value: 66 }, - { lonlat: [109.49581661405635, 36.60443486991358], value: 55 }, - { lonlat: [109.49529000298357, 36.604994123879244], value: 66 }, - { lonlat: [109.49460891932945, 36.60451168465817], value: 66 }, - { lonlat: [109.4949529718969, 36.60387072220969], value: 5 }, - { lonlat: [109.4958166140561, 36.60367134909574], value: 5 }, - { lonlat: [109.49568320591762, 36.60269068866781], value: 5 }, - { lonlat: [109.49566916295554, 36.60080859328861], value: 6 }, - { lonlat: [109.49566214147451, 36.60014495272406], value: 6 }, - { lonlat: [109.494840628201, 36.599753070596016], value: 6 }, - { lonlat: [109.4965608910385, 36.60014250723452], value: 6 }, - { lonlat: [109.49708750211117, 36.60052061853767], value: 6 }, - { lonlat: [109.49651876215258, 36.60062696783045], value: 6 }, - { lonlat: [109.49725601765434, 36.60026905844781], value: 6 }, - { lonlat: [109.49813370277548, 36.601100102081844], value: 6 }, - { lonlat: [109.49785284353655, 36.60242247026715], value: 6 }, - { lonlat: [109.49832328276145, 36.60081901303621], value: 6 }, - { lonlat: [109.49783880057448, 36.59967978702087], value: 6 }, - { lonlat: [109.49802838056061, 36.599299226039754], value: 6 }, - { lonlat: [109.49848477682357, 36.59905454638016], value: 6 }, - { lonlat: [109.49689090064342, 36.59891177851914], value: 6 }, - { lonlat: [109.4978247576123, 36.59752340035382], value: 6 }, - { lonlat: [109.49701728730074, 36.596542660729575], value: 6 }, - { lonlat: [109.49685645137883, 36.595212452415], value: 6 }, - { lonlat: [109.49616132476278, 36.59372208751017], value: 6 }, - { lonlat: [109.497713072057, 36.59436068924544], value: 6 }, - { lonlat: [109.49829530434499, 36.59627757677923], value: 7 }, - { lonlat: [109.49801374925752, 36.593942855465386], value: 7 }, - { lonlat: [109.49621402796436, 36.59244561043963], value: 7 }, - { lonlat: [109.49611930579097, 36.591341185842126], value: 7 }, - { lonlat: [109.49618696448614, 36.58984388974645], value: 7 }, - { lonlat: [109.49579789965442, 36.589368310214226], value: 7 }, - { lonlat: [109.4920496079386, 36.58885313566361], value: 7 }, - { lonlat: [109.48960036317119, 36.588970902925006], value: 7 }, - { lonlat: [109.48761119753136, 36.58913232115246], value: 7 }, - { lonlat: [109.48470187363641, 36.58831158443507], value: 7 }, - { lonlat: [109.48200905756617, 36.589389680113165], value: 56 }, - { lonlat: [109.48023639975108, 36.58902015763719], value: 7 }, - { lonlat: [109.47394414109459, 36.58837402615219], value: 80 }, - { lonlat: [109.4728480702318, 36.59023783394082], value: 78 }, - { lonlat: [109.46961398459973, 36.588434956116345], value: 77 }, - { lonlat: [109.46908624677688, 36.587439603702165], value: 55 }, - { lonlat: [109.4652161694096, 36.58760966434236], value: 7 }, - { lonlat: [109.46463430463056, 36.58702899938492], value: 55 }, - { lonlat: [109.46321347203066, 36.585073258863616], value: 7 }, - { lonlat: [109.46482374897708, 36.583968727419084], value: 7 }, - { lonlat: [109.46692116852915, 36.58347534338372], value: 55 }, - { lonlat: [109.4688020802565, 36.58344032845259], value: 55 }, - { lonlat: [109.47236092762554, 36.58305607754432], value: 66 }, - { lonlat: [109.47351112544439, 36.58086012847229], value: 55 }, - { lonlat: [109.47357878413955, 36.58486317336802], value: 5 }, - { lonlat: [109.46054812145172, 36.592050037038575], value: 55 }, - { lonlat: [109.45958516192611, 36.59014334083254], value: 45 }, - { lonlat: [109.441690631703, 36.574861874203556], value: 45 }, - { lonlat: [109.44624550826747, 36.57378190194129], value: 7 }, - { lonlat: [109.4509010450875, 36.57331087985171], value: 7 }, - { lonlat: [109.45600955305757, 36.573692403602315], value: 7 }, - { lonlat: [109.45623603863253, 36.573058990448956], value: 7 }, - { lonlat: [109.46174718762488, 36.57201959088281], value: 7 }, - { lonlat: [109.46564777252813, 36.57459338262966], value: 7 }, - { lonlat: [109.47100793113714, 36.57481251327233], value: 7 }, - { lonlat: [109.47073111543428, 36.57287999199309], value: 7 }, - { lonlat: [109.47181321318158, 36.57139400720595], value: 7 }, - { lonlat: [109.47722370191836, 36.57685016603991], value: 7 }, - { lonlat: [109.48097329643825, 36.57962676684916], value: 7 }, - { lonlat: [109.49076250629228, 36.580657760474004], value: 7 }, - { lonlat: [109.4908883316117, 36.57815705967815], value: 7 }, - { lonlat: [109.48588048389708, 36.575696873317725], value: 7 }, - { lonlat: [109.48555333806642, 36.57234345586721], value: 7 }, - { lonlat: [109.48462223070236, 36.57114165197099], value: 7 }, - { lonlat: [109.48494937653292, 36.569168438097215], value: 7 }, - { lonlat: [109.48789368900827, 36.568575587318655], value: 7 }, - { lonlat: [109.48701291177198, 36.56741432474017], value: 77 }, - { lonlat: [109.48668576594132, 36.565197403953434], value: 77 }, - { lonlat: [109.48661027074958, 36.56200594032002], value: 77 }, - { lonlat: [109.48643411530227, 36.55950462918852], value: 7 }, - { lonlat: [109.47872714141864, 36.55363535583412], value: 7 }, - { lonlat: [109.47752130169793, 36.55237880798815], value: 7 }, - { lonlat: [109.47659108248483, 36.550399478960415], value: 7 }, - { lonlat: [109.47531633763725, 36.54680772057538], value: 7 }, - { lonlat: [109.47714232349988, 36.538378228993835], value: 7 }, - { lonlat: [109.47628100941364, 36.53678778825302], value: 7 }, - { lonlat: [109.49119798128915, 36.57421937037934], value: 7 }, - { lonlat: [109.49316811330803, 36.5763548006588], value: 7 }, - { lonlat: [109.49201320833134, 36.5772533638739], value: 7 }, - { lonlat: [109.49206173375048, 36.57869986536457], value: 7 }, - { lonlat: [109.49288666587658, 36.57962971205523], value: 7 }, - { lonlat: [109.4948373877278, 36.579792436760556], value: 7 }, - { lonlat: [109.49405127593694, 36.581677232061956], value: 7 }, - { lonlat: [109.49497325890142, 36.582200016243696], value: 7 }, - { lonlat: [109.49599229270427, 36.581908742939454], value: 7 }, - { lonlat: [109.49642902147689, 36.583276883316856], value: 56 }, - { lonlat: [109.49692398075254, 36.58497374115537], value: 4 }, - { lonlat: [109.49697250617166, 36.58646705928871], value: 4 }, - { lonlat: [109.49781684846545, 36.58750638888238], value: 4 }, - { lonlat: [109.49951870129331, 36.59430380170364], value: 3 }, - { lonlat: [109.49965804385573, 36.59486501809594], value: 65 }, - { lonlat: [109.49988842408676, 36.59649457072071], value: 76 }, - { lonlat: [109.50008437575242, 36.59732109333835], value: 64 }, - { lonlat: [109.49935516493218, 36.59831527959685], value: 43 }, - { lonlat: [109.50060236752009, 36.60104441193055], value: 45 }, - { lonlat: [109.50126321265897, 36.60358057739102], value: 23 }, - { lonlat: [109.49942472380532, 36.604173438687546], value: 34 }, - { lonlat: [109.5007026398301, 36.60501144006829], value: 6 }, - { lonlat: [109.49901617072663, 36.605443415517875], value: 5 }, - { lonlat: [109.50014206700124, 36.6054693718935], value: 5 }, - { lonlat: [109.50184753857336, 36.6066137836571], value: 6 }, - { lonlat: [109.50264089164449, 36.606042210978295], value: 6 }, - { lonlat: [109.50362426940333, 36.606627392739135], value: 6 }, - { lonlat: [109.5029639336135, 36.60551750543657], value: 6 }, - { lonlat: [109.50313970644957, 36.60497656754981], value: 6 }, - { lonlat: [109.50333489978382, 36.60424830824475], value: 6 }, - { lonlat: [109.50498336394963, 36.60554595245176], value: 6 }, - { lonlat: [109.5062137738025, 36.60733384990011], value: 6 }, - { lonlat: [109.50681710218589, 36.607903700917404], value: 6 }, - { lonlat: [109.5058527268957, 36.60992901196387], value: 6 }, - { lonlat: [109.50458431210518, 36.61083589220665], value: 6 }, - { lonlat: [109.5035629294087, 36.61163552050199], value: 6 }, - { lonlat: [109.50728675442862, 36.60816923300994], value: 6 }, - { lonlat: [109.50862770454853, 36.60957898993155], value: 6 }, - { lonlat: [109.50900738849452, 36.611329111002924], value: 6 }, - { lonlat: [109.5087728725542, 36.61263215550033], value: 6 }, - { lonlat: [109.51196589727925, 36.61287834022912], value: 6 }, - { lonlat: [109.51194785759148, 36.614481923277204], value: 6 }, - { lonlat: [109.5131805695851, 36.614291799340485], value: 6 }, - { lonlat: [109.51506271033638, 36.61535240611497], value: 6 }, - { lonlat: [109.51550167607066, 36.616878374906946], value: 6 }, - { lonlat: [109.5174078697389, 36.6167755151019], value: 6 }, - { lonlat: [109.51728159192487, 36.61817541867955], value: 6 }, - { lonlat: [109.51805729849644, 36.61931353190943], value: 6 }, - { lonlat: [109.52015591550028, 36.61910403021254], value: 6 }, - { lonlat: [109.52326378422758, 36.618323942249155], value: 6 }, - { lonlat: [109.52535504124248, 36.621157617292155], value: 6 }, - { lonlat: [109.52708365253223, 36.622782899894624], value: 6 }, - { lonlat: [109.53062549244765, 36.62553845807305], value: 6 }, - { lonlat: [109.53329698262276, 36.62472766573882], value: 6 }, - { lonlat: [109.53529153411093, 36.62401430655811], value: 6 }, - { lonlat: [109.53622232480538, 36.62273577119326], value: 6 }, - { lonlat: [109.53555747430924, 36.62184699338395], value: 6 }, - { lonlat: [109.5376787067582, 36.627153166827114], value: 6 }, - { lonlat: [109.53979414015477, 36.62881729653026], value: 6 }, - { lonlat: [109.54130516400943, 36.63016960226274], value: 6 }, - { lonlat: [109.54008425673476, 36.63148291126323], value: 6 }, - { lonlat: [109.53755782484959, 36.63369255351504], value: 6 }, - { lonlat: [109.53614579982442, 36.6360575522797], value: 6 }, - { lonlat: [109.53343812543821, 36.62040741435609], value: 6 }, - { lonlat: [109.53580803843838, 36.62277137411824], value: 6 }, - { lonlat: [109.54168042409255, 36.62849933558428], value: 6 }, - { lonlat: [109.54288050769686, 36.63006645029258], value: 6 }, - { lonlat: [109.54573448803326, 36.63312914358253], value: 6 }, - { lonlat: [109.54725728319507, 36.636077923401025], value: 6 }, - { lonlat: [109.54490753966712, 36.63712470479035], value: 6 }, - { lonlat: [109.54219474563702, 36.63804142854716], value: 6 }, - { lonlat: [109.53998618841547, 36.636568584052085], value: 6 }, - { lonlat: [109.53464796833235, 36.63649472525616], value: 6 }, - { lonlat: [109.53531650653413, 36.633497267658136], value: 6 }, - { lonlat: [109.52895761991671, 36.63899560790742], value: 6 }, - { lonlat: [109.52561492890752, 36.6410855206062], value: 6 }, - { lonlat: [109.52130829909568, 36.6436264356986], value: 6 }, - { lonlat: [109.51955144289083, 36.64125575007403], value: 6 }, - { lonlat: [109.51807443988673, 36.63976209758932], value: 6 }, - { lonlat: [109.51690838488348, 36.64107514503131], value: 6 }, - { lonlat: [109.51689283748337, 36.643941824018825], value: 6 }, - { lonlat: [109.51588225648054, 36.646106775610676], value: 6 }, - { lonlat: [109.51409430547558, 36.64724431137258], value: 6 }, - { lonlat: [109.51174664806909, 36.646327110237564], value: 6 }, - { lonlat: [109.51070497226618, 36.648567165872755], value: 6 }, - { lonlat: [109.50978767566362, 36.64972972191704], value: 6 }, - { lonlat: [109.51067387746598, 36.650967429494266], value: 6 }, - { lonlat: [109.51146679486808, 36.652280284952866], value: 6 }, - { lonlat: [109.51191766946926, 36.65361817342491], value: 6 }, - { lonlat: [109.51199540646942, 36.65525669873434], value: 6 }, - { lonlat: [109.51428087427561, 36.655191468743396], value: 6 }, - { lonlat: [109.51460736967644, 36.65357281224559], value: 6 }, - { lonlat: [109.51353459907345, 36.65593792955656], value: 6 }, - { lonlat: [109.50664710085456, 36.64933312632619], value: 6 }, - { lonlat: [109.50327331504526, 36.64723825232908], value: 6 }, - { lonlat: [109.50558987765153, 36.64807508399961], value: 28 }, - { lonlat: [109.50703578585542, 36.64720800813199], value: 29 }, - { lonlat: [109.50596301525242, 36.6462406907215], value: 28 }, - { lonlat: [109.50380192664646, 36.647478454644535], value: 6 }, - { lonlat: [109.50293172446254, 36.64689822474207], value: 6 }, - { lonlat: [109.49977744553338, 36.648514140036085], value: 6 }, - { lonlat: [109.49841675260586, 36.64788286957943], value: 5 }, - { lonlat: [109.49667830356817, 36.64754979371535], value: 5 }, - { lonlat: [109.49480514097309, 36.64623412909707], value: 5 }, - { lonlat: [109.49194575265034, 36.64800589561177], value: 5 }, - { lonlat: [109.48774678808107, 36.64818660580967], value: 5 }, - { lonlat: [109.48778573951488, 36.65030081450137], value: 23 }, - { lonlat: [109.49052013017122, 36.65182489248657], value: 34 }, - { lonlat: [109.49386216319564, 36.653097849178344], value: 23 }, - { lonlat: [109.49541243026289, 36.655375126863646], value: 34 }, - { lonlat: [109.49376867975428, 36.65881983304358], value: 5 }, - { lonlat: [109.49594216976315, 36.66097140773642], value: 5 }, - { lonlat: [109.49674456930045, 36.662419955163955], value: 5 }, - { lonlat: [109.49257676587825, 36.66373039429423], value: 5 }, - { lonlat: [109.48954634432454, 36.66561822861078], value: 5 }, - { lonlat: [109.48265911535468, 36.654995428105366], value: 5 }, - { lonlat: [109.47853819629543, 36.65495490425706], value: 5 }, - { lonlat: [109.47794031082658, 36.64600156969751], value: 5 }, - { lonlat: [109.47947610116441, 36.638089580666374], value: 5 }, - { lonlat: [109.48196313342223, 36.63989201277776], value: 5 }, - { lonlat: [109.48007581107044, 36.63626409608854], value: 5 }, - { lonlat: [109.48312727618112, 36.63616165277856], value: 6 }, - { lonlat: [109.48487349031957, 36.63719648127574], value: 5 }, - { lonlat: [109.48806606364347, 36.640221454017194], value: 5 }, - { lonlat: [109.48968880809531, 36.64396832101501], value: 5 }, - { lonlat: [109.49199945508674, 36.64370117513442], value: 5 }, - { lonlat: [109.4886481350228, 36.64628232413764], value: 5 }, - { lonlat: [109.48693719793754, 36.6481698459415], value: 5 }, - { lonlat: [109.49295193552571, 36.64621960689284], value: 6 }, - { lonlat: [109.4960034006364, 36.647282727565546], value: 5 }, - { lonlat: [109.4991959739603, 36.64675388047846], value: 5 }, - { lonlat: [109.50401129173616, 36.64690730406689], value: 5 }, - { lonlat: [109.50575750587461, 36.64410416698772], value: 5 }, - { lonlat: [109.5035879670964, 36.64221068329797], value: 5 }, - { lonlat: [109.49916069690676, 36.63886718707988], value: 5 }, - { lonlat: [109.4955447989431, 36.639105918699926], value: 34 }, - { lonlat: [109.49207000919266, 36.63564855779099], value: 34 }, - { lonlat: [109.48792495542945, 36.63128116433782], value: 23 }, - { lonlat: [109.4824393736407, 36.62725474513087], value: 43 }, - { lonlat: [109.48350796628219, 36.6240399916917], value: 5 }, - { lonlat: [109.47904752109281, 36.617139346998826], value: 5 }, - { lonlat: [109.47973483856029, 36.6163530732266], value: 5 }, - { lonlat: [109.48169304493001, 36.61519041973535], value: 6 }, - { lonlat: [109.48128150577406, 36.61652725739157], value: 5 }, - { lonlat: [109.4856636114327, 36.61250054572504], value: 6 }, - { lonlat: [109.48669837172288, 36.61390464711184], value: 5 }, - { lonlat: [109.48778868961256, 36.61110958729933], value: 5 }, - { lonlat: [109.48832343150745, 36.61186423919422], value: 5 }, - { lonlat: [109.48855260660523, 36.61062565266084], value: 5 }, - { lonlat: [109.49005960649093, 36.60966700183684], value: 5 }, - { lonlat: [109.49101103038188, 36.608943504005595], value: 5 }, - { lonlat: [109.49269164776588, 36.607944427600174], value: 5 }, - { lonlat: [109.49137909947821, 36.60774724442752], value: 5 }, - { lonlat: [109.49426114995096, 36.60713571424016], value: 5 }, - { lonlat: [109.4965699550399, 36.6053070257893], value: 5 }, - { lonlat: [109.49771583052903, 36.60506504012202], value: 5 }, - { lonlat: [109.49879225901881, 36.60545019078856], value: 5 }, - { lonlat: [109.49911865991568, 36.6049954268223], value: 5 }, - { lonlat: [109.50854172185717, 36.60498562319275], value: 5 }, - { lonlat: [109.51044938269962, 36.60552218657323], value: 5 }, - { lonlat: [109.51212316173265, 36.60707867359568], value: 5 }, - { lonlat: [109.51372557809377, 36.60793013404142], value: 5 }, - { lonlat: [109.51465329282912, 36.60842590572189], value: 5 }, - { lonlat: [109.51604810869001, 36.60896351865908], value: 5 }, - { lonlat: [109.51735209933206, 36.609239601548374], value: 6 }, - { lonlat: [109.51869501506792, 36.61021656939483], value: 6 }, - { lonlat: [109.51997305564743, 36.61025204679149], value: 6 }, - { lonlat: [109.52078399510141, 36.610674577473965], value: 6 }, - { lonlat: [109.64885541010113, 36.68368750346818], value: 77 }, - { lonlat: [109.64418083988407, 36.684106217976854], value: 77 }, - { lonlat: [109.65730463327395, 36.68351820161691], value: 6 }, - { lonlat: [109.66382903341632, 36.683373146319866], value: 53 }, - { lonlat: [109.66365404950439, 36.68117431536967], value: 54 }, - { lonlat: [109.66952850940268, 36.687351497043785], value: 56 }, - { lonlat: [109.67765276245356, 36.68821312918963], value: 33 }, - { lonlat: [109.67907763145014, 36.68818888405842], value: 23 }, - { lonlat: [109.67620289575514, 36.68570831505293], value: 34 }, - { lonlat: [109.66992847262958, 36.6839122446761], value: 6 }, - { lonlat: [109.66315409547013, 36.68135099518023], value: 6 }, - { lonlat: [109.68433055291582, 36.68853913721367], value: 6 }, - { lonlat: [109.68255571609542, 36.69068926681356], value: 6 }, - { lonlat: [109.68633036905133, 36.69126900476532], value: 77 }, - { lonlat: [109.68605539433261, 36.69273456341231], value: 77 }, - { lonlat: [109.68383059888168, 36.693435078555396], value: 6 }, - { lonlat: [109.70500365221739, 36.69928917967537], value: 77 }, - { lonlat: [109.70692847524785, 36.69970780952815], value: 77 }, - { lonlat: [109.72405190090896, 36.70298488870231], value: 6 }, - { lonlat: [109.72712178240528, 36.70196817888451], value: 34 }, - { lonlat: [109.72395293859049, 36.701623796200366], value: 34 }, - ]; - let heatMapJeojson = {}; - let heatMapFeatures = []; - heatMapList.forEach(element => { - let heatmap = turf.point(element.lonlat); - heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.BD09, gcoord.WGS84); - heatMapFeatures.push(heatmap); - }); - heatMapJeojson = turf.featureCollection(heatMapFeatures); - mapBoxVectorLayer.removeByIds(['heatMapLayer']); - mapBoxVectorLayer.addHeatMapLayer('heatMapLayer', heatMapJeojson, 'value'); - heatMapJeojson.features.forEach(feature => { - gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); - }); } else if (FxClickName.value == '排水') { let obj = [ { @@ -677,388 +295,7 @@ }, ]; bus.emit('FxVisible', obj); - let heatMapList = [ - { lonlat: [109.4583517767791, 36.64045660187989], value: 2 }, - { lonlat: [109.45915900059231, 36.639564923076406], value: 1 }, - { lonlat: [109.46064074624108, 36.63888888248738], value: 3 }, - { lonlat: [109.46175090337006, 36.63763347376713], value: 4 }, - { lonlat: [109.46233801013652, 36.63722780459428], value: 5 }, - { lonlat: [109.46275737211255, 36.63718265184453], value: 3 }, - { lonlat: [109.46340039380915, 36.63601087211503], value: 2 }, - { lonlat: [109.4634842662043, 36.639796184662536], value: 3 }, - { lonlat: [109.46681120454784, 36.635965630684304], value: 2 }, - { lonlat: [109.46751014117459, 36.63303623297878], value: 3 }, - { lonlat: [109.46764992849988, 36.63236013419859], value: 4 }, - { lonlat: [109.46801337554575, 36.63082773329404], value: 5 }, - { lonlat: [109.4677058434299, 36.629971339150515], value: 6 }, - { lonlat: [109.46790154568534, 36.62897972679855], value: 4 }, - { lonlat: [109.46820907780108, 36.62758246914724], value: 5 }, - { lonlat: [109.46846069498666, 36.625914758136716], value: 3 }, - { lonlat: [109.46435094762097, 36.63127797375913], value: 3 }, - { lonlat: [109.46493805438743, 36.62726670999692], value: 3 }, - { lonlat: [109.46518967157303, 36.625959563646546], value: 3 }, - { lonlat: [109.45336366384743, 36.6337564188794], value: 3 }, - { lonlat: [109.45450991991531, 36.63114241494354], value: 3 }, - { lonlat: [109.4557680058435, 36.6292043657803], value: 3 }, - { lonlat: [109.4545099199152, 36.62609442354592], value: 3 }, - { lonlat: [109.45330774891703, 36.62532758190564], value: 3 }, - { lonlat: [109.45825622023474, 36.62505706236186], value: 3 }, - { lonlat: [109.46314877662232, 36.62532740431396], value: 3 }, - { lonlat: [109.44662591476458, 36.62744565667445], value: 3 }, - { lonlat: [109.44139786879603, 36.62974412708136], value: 3 }, - { lonlat: [109.43645036088442, 36.63126842378145], value: 3 }, - { lonlat: [109.43211670920196, 36.63081469982216], value: 3 }, - { lonlat: [109.42868355657039, 36.632810587611026], value: 3 }, - { lonlat: [109.41793384915036, 36.634987868433505], value: 3 }, - { lonlat: [109.40921026459482, 36.63444344378062], value: 3 }, - { lonlat: [109.46858692076272, 36.62110590039618], value: 3 }, - { lonlat: [109.47035661856971, 36.61995354263662], value: 3 }, - { lonlat: [109.47258171472353, 36.61892777347618], value: 3 }, - { lonlat: [109.47334332481641, 36.6208153097412], value: 35 }, - { lonlat: [109.47401900156899, 36.620127962636424], value: 45 }, - { lonlat: [109.47436575670645, 36.61957709339732], value: 43 }, - { lonlat: [109.47556013551343, 36.61923328226432], value: 4 }, - { lonlat: [109.47708842667508, 36.61754354976672], value: 5 }, - { lonlat: [109.47910474358588, 36.61661993861554], value: 6 }, - { lonlat: [109.47944089622014, 36.616364726231225], value: 6 }, - { lonlat: [109.47757869270369, 36.615731001159105], value: 6 }, - { lonlat: [109.47590065021183, 36.61525895943912], value: 7 }, - { lonlat: [109.47548213080846, 36.614904203510264], value: 54 }, - { lonlat: [109.47457696093612, 36.61451805927941], value: 34 }, - { lonlat: [109.47548213080833, 36.61421038003272], value: 25 }, - { lonlat: [109.476835019112, 36.613808538791], value: 34 }, - { lonlat: [109.47752606277787, 36.61309282379784], value: 4 }, - { lonlat: [109.478197640425, 36.61383660779872], value: 5 }, - { lonlat: [109.47888868409086, 36.61442345137025], value: 6 }, - { lonlat: [109.47862589283756, 36.61518291568912], value: 4 }, - { lonlat: [109.47945319863473, 36.61438874695218], value: 4 }, - { lonlat: [109.48037783452571, 36.61392413291535], value: 4 }, - { lonlat: [109.48066009179765, 36.613381048298066], value: 4 }, - { lonlat: [109.47880108700613, 36.613057670788265], value: 4 }, - { lonlat: [109.47672795600828, 36.61215362328269], value: 3 }, - { lonlat: [109.47235706714471, 36.608714319110575], value: 4 }, - { lonlat: [109.47095953066176, 36.60900989208619], value: 4 }, - { lonlat: [109.47242414889578, 36.60820574067667], value: 4 }, - { lonlat: [109.47080300657555, 36.60720326624053], value: 4 }, - { lonlat: [109.46960671534613, 36.60677769970712], value: 4 }, - { lonlat: [109.4667110197535, 36.60586535117448], value: 4 }, - { lonlat: [109.46634207012195, 36.60571021211726], value: 4 }, - { lonlat: [109.48124809033756, 36.61305208261769], value: 4 }, - { lonlat: [109.48183684833916, 36.61249083700314], value: 4 }, - { lonlat: [109.48355078829951, 36.611592045362464], value: 4 }, - { lonlat: [109.4836162058552, 36.611030788941534], value: 4 }, - { lonlat: [109.48472830430275, 36.6098155271458], value: 4 }, - { lonlat: [109.4848983899476, 36.60950742186193], value: 4 }, - { lonlat: [109.48548714794921, 36.61046512927026], value: 4 }, - { lonlat: [109.48597123786165, 36.60922876138633], value: 4 }, - { lonlat: [109.48645532777408, 36.60856200129905], value: 4 }, - { lonlat: [109.48743659111014, 36.60781084557607], value: 4 }, - { lonlat: [109.48792068102257, 36.607355049157874], value: 5 }, - { lonlat: [109.48809076666744, 36.60711022678964], value: 5 }, - { lonlat: [109.48710950333127, 36.60684430590222], value: 5 }, - { lonlat: [109.48636374319577, 36.60624081857617], value: 5 }, - { lonlat: [109.48535859229459, 36.605997022060514], value: 28 }, - { lonlat: [109.48571114675235, 36.60507741447555], value: 26 }, - { lonlat: [109.4869629705518, 36.60486639408042], value: 32 }, - { lonlat: [109.48860822468815, 36.60652068303526], value: 43 }, - { lonlat: [109.48959435527298, 36.606639238856765], value: 33 }, - { lonlat: [109.49055507792285, 36.60707599046411], value: 23 }, - { lonlat: [109.49062150122646, 36.606453011511526], value: 43 }, - { lonlat: [109.4906824296868, 36.607181292824684], value: 23 }, - { lonlat: [109.49173098572089, 36.60668830758674], value: 43 }, - { lonlat: [109.49338196262373, 36.60598188730296], value: 56 }, - { lonlat: [109.49414496601992, 36.605639090280604], value: 55 }, - { lonlat: [109.49287133727367, 36.60487615143745], value: 55 }, - { lonlat: [109.49244041494259, 36.604467862285254], value: 55 }, - { lonlat: [109.49361186903214, 36.604247271956666], value: 55 }, - { lonlat: [109.49395592159959, 36.603945994095234], value: 55 }, - { lonlat: [109.49451061859614, 36.603633392114766], value: 55 }, - { lonlat: [109.49505127263073, 36.603150944228496], value: 66 }, - { lonlat: [109.49581661405635, 36.60443486991358], value: 55 }, - { lonlat: [109.49529000298357, 36.604994123879244], value: 66 }, - { lonlat: [109.49460891932945, 36.60451168465817], value: 66 }, - { lonlat: [109.4949529718969, 36.60387072220969], value: 5 }, - { lonlat: [109.4958166140561, 36.60367134909574], value: 5 }, - { lonlat: [109.49568320591762, 36.60269068866781], value: 5 }, - { lonlat: [109.49566916295554, 36.60080859328861], value: 6 }, - { lonlat: [109.49566214147451, 36.60014495272406], value: 6 }, - { lonlat: [109.494840628201, 36.599753070596016], value: 6 }, - { lonlat: [109.4965608910385, 36.60014250723452], value: 6 }, - { lonlat: [109.49708750211117, 36.60052061853767], value: 6 }, - { lonlat: [109.49651876215258, 36.60062696783045], value: 6 }, - { lonlat: [109.49725601765434, 36.60026905844781], value: 6 }, - { lonlat: [109.49813370277548, 36.601100102081844], value: 6 }, - { lonlat: [109.49785284353655, 36.60242247026715], value: 6 }, - { lonlat: [109.49832328276145, 36.60081901303621], value: 6 }, - { lonlat: [109.49783880057448, 36.59967978702087], value: 6 }, - { lonlat: [109.49802838056061, 36.599299226039754], value: 6 }, - { lonlat: [109.49848477682357, 36.59905454638016], value: 6 }, - { lonlat: [109.49689090064342, 36.59891177851914], value: 6 }, - { lonlat: [109.4978247576123, 36.59752340035382], value: 6 }, - { lonlat: [109.49701728730074, 36.596542660729575], value: 6 }, - { lonlat: [109.49685645137883, 36.595212452415], value: 6 }, - { lonlat: [109.49616132476278, 36.59372208751017], value: 6 }, - { lonlat: [109.497713072057, 36.59436068924544], value: 6 }, - { lonlat: [109.49829530434499, 36.59627757677923], value: 7 }, - { lonlat: [109.49801374925752, 36.593942855465386], value: 7 }, - { lonlat: [109.49621402796436, 36.59244561043963], value: 7 }, - { lonlat: [109.49611930579097, 36.591341185842126], value: 7 }, - { lonlat: [109.49618696448614, 36.58984388974645], value: 7 }, - { lonlat: [109.49579789965442, 36.589368310214226], value: 7 }, - { lonlat: [109.4920496079386, 36.58885313566361], value: 7 }, - { lonlat: [109.48960036317119, 36.588970902925006], value: 7 }, - { lonlat: [109.48761119753136, 36.58913232115246], value: 7 }, - { lonlat: [109.48470187363641, 36.58831158443507], value: 7 }, - { lonlat: [109.48200905756617, 36.589389680113165], value: 56 }, - { lonlat: [109.48023639975108, 36.58902015763719], value: 7 }, - { lonlat: [109.47394414109459, 36.58837402615219], value: 80 }, - { lonlat: [109.4728480702318, 36.59023783394082], value: 78 }, - { lonlat: [109.46961398459973, 36.588434956116345], value: 77 }, - { lonlat: [109.46908624677688, 36.587439603702165], value: 55 }, - { lonlat: [109.4652161694096, 36.58760966434236], value: 7 }, - { lonlat: [109.46463430463056, 36.58702899938492], value: 55 }, - { lonlat: [109.46321347203066, 36.585073258863616], value: 7 }, - { lonlat: [109.46482374897708, 36.583968727419084], value: 7 }, - { lonlat: [109.46692116852915, 36.58347534338372], value: 55 }, - { lonlat: [109.4688020802565, 36.58344032845259], value: 55 }, - { lonlat: [109.47236092762554, 36.58305607754432], value: 66 }, - { lonlat: [109.47351112544439, 36.58086012847229], value: 55 }, - { lonlat: [109.47357878413955, 36.58486317336802], value: 5 }, - { lonlat: [109.46054812145172, 36.592050037038575], value: 55 }, - { lonlat: [109.45958516192611, 36.59014334083254], value: 45 }, - { lonlat: [109.441690631703, 36.574861874203556], value: 45 }, - { lonlat: [109.44624550826747, 36.57378190194129], value: 7 }, - { lonlat: [109.4509010450875, 36.57331087985171], value: 7 }, - { lonlat: [109.45600955305757, 36.573692403602315], value: 7 }, - { lonlat: [109.45623603863253, 36.573058990448956], value: 7 }, - { lonlat: [109.46174718762488, 36.57201959088281], value: 7 }, - { lonlat: [109.46564777252813, 36.57459338262966], value: 7 }, - { lonlat: [109.47100793113714, 36.57481251327233], value: 7 }, - { lonlat: [109.47073111543428, 36.57287999199309], value: 7 }, - { lonlat: [109.47181321318158, 36.57139400720595], value: 7 }, - { lonlat: [109.47722370191836, 36.57685016603991], value: 7 }, - { lonlat: [109.48097329643825, 36.57962676684916], value: 7 }, - { lonlat: [109.49076250629228, 36.580657760474004], value: 7 }, - { lonlat: [109.4908883316117, 36.57815705967815], value: 7 }, - { lonlat: [109.48588048389708, 36.575696873317725], value: 7 }, - { lonlat: [109.48555333806642, 36.57234345586721], value: 7 }, - { lonlat: [109.48462223070236, 36.57114165197099], value: 7 }, - { lonlat: [109.48494937653292, 36.569168438097215], value: 7 }, - { lonlat: [109.48789368900827, 36.568575587318655], value: 7 }, - { lonlat: [109.48701291177198, 36.56741432474017], value: 77 }, - { lonlat: [109.48668576594132, 36.565197403953434], value: 77 }, - { lonlat: [109.48661027074958, 36.56200594032002], value: 77 }, - { lonlat: [109.48643411530227, 36.55950462918852], value: 7 }, - { lonlat: [109.47872714141864, 36.55363535583412], value: 7 }, - { lonlat: [109.47752130169793, 36.55237880798815], value: 7 }, - { lonlat: [109.47659108248483, 36.550399478960415], value: 7 }, - { lonlat: [109.47531633763725, 36.54680772057538], value: 7 }, - { lonlat: [109.47714232349988, 36.538378228993835], value: 7 }, - { lonlat: [109.47628100941364, 36.53678778825302], value: 7 }, - { lonlat: [109.49119798128915, 36.57421937037934], value: 7 }, - { lonlat: [109.49316811330803, 36.5763548006588], value: 7 }, - { lonlat: [109.49201320833134, 36.5772533638739], value: 7 }, - { lonlat: [109.49206173375048, 36.57869986536457], value: 7 }, - { lonlat: [109.49288666587658, 36.57962971205523], value: 7 }, - { lonlat: [109.4948373877278, 36.579792436760556], value: 7 }, - { lonlat: [109.49405127593694, 36.581677232061956], value: 7 }, - { lonlat: [109.49497325890142, 36.582200016243696], value: 7 }, - { lonlat: [109.49599229270427, 36.581908742939454], value: 7 }, - { lonlat: [109.49642902147689, 36.583276883316856], value: 56 }, - { lonlat: [109.49692398075254, 36.58497374115537], value: 4 }, - { lonlat: [109.49697250617166, 36.58646705928871], value: 4 }, - { lonlat: [109.49781684846545, 36.58750638888238], value: 4 }, - { lonlat: [109.49951870129331, 36.59430380170364], value: 3 }, - { lonlat: [109.49965804385573, 36.59486501809594], value: 65 }, - { lonlat: [109.49988842408676, 36.59649457072071], value: 76 }, - { lonlat: [109.50008437575242, 36.59732109333835], value: 64 }, - { lonlat: [109.49935516493218, 36.59831527959685], value: 43 }, - { lonlat: [109.50060236752009, 36.60104441193055], value: 45 }, - { lonlat: [109.50126321265897, 36.60358057739102], value: 23 }, - { lonlat: [109.49942472380532, 36.604173438687546], value: 34 }, - { lonlat: [109.5007026398301, 36.60501144006829], value: 6 }, - { lonlat: [109.49901617072663, 36.605443415517875], value: 5 }, - { lonlat: [109.50014206700124, 36.6054693718935], value: 5 }, - { lonlat: [109.50184753857336, 36.6066137836571], value: 6 }, - { lonlat: [109.50264089164449, 36.606042210978295], value: 6 }, - { lonlat: [109.50362426940333, 36.606627392739135], value: 6 }, - { lonlat: [109.5029639336135, 36.60551750543657], value: 6 }, - { lonlat: [109.50313970644957, 36.60497656754981], value: 6 }, - { lonlat: [109.50333489978382, 36.60424830824475], value: 6 }, - { lonlat: [109.50498336394963, 36.60554595245176], value: 6 }, - { lonlat: [109.5062137738025, 36.60733384990011], value: 6 }, - { lonlat: [109.50681710218589, 36.607903700917404], value: 6 }, - { lonlat: [109.5058527268957, 36.60992901196387], value: 6 }, - { lonlat: [109.50458431210518, 36.61083589220665], value: 6 }, - { lonlat: [109.5035629294087, 36.61163552050199], value: 6 }, - { lonlat: [109.50728675442862, 36.60816923300994], value: 6 }, - { lonlat: [109.50862770454853, 36.60957898993155], value: 6 }, - { lonlat: [109.50900738849452, 36.611329111002924], value: 6 }, - { lonlat: [109.5087728725542, 36.61263215550033], value: 6 }, - { lonlat: [109.51196589727925, 36.61287834022912], value: 6 }, - { lonlat: [109.51194785759148, 36.614481923277204], value: 6 }, - { lonlat: [109.5131805695851, 36.614291799340485], value: 6 }, - { lonlat: [109.51506271033638, 36.61535240611497], value: 6 }, - { lonlat: [109.51550167607066, 36.616878374906946], value: 6 }, - { lonlat: [109.5174078697389, 36.6167755151019], value: 6 }, - { lonlat: [109.51728159192487, 36.61817541867955], value: 6 }, - { lonlat: [109.51805729849644, 36.61931353190943], value: 6 }, - { lonlat: [109.52015591550028, 36.61910403021254], value: 6 }, - { lonlat: [109.52326378422758, 36.618323942249155], value: 6 }, - { lonlat: [109.52535504124248, 36.621157617292155], value: 6 }, - { lonlat: [109.52708365253223, 36.622782899894624], value: 6 }, - { lonlat: [109.53062549244765, 36.62553845807305], value: 6 }, - { lonlat: [109.53329698262276, 36.62472766573882], value: 6 }, - { lonlat: [109.53529153411093, 36.62401430655811], value: 6 }, - { lonlat: [109.53622232480538, 36.62273577119326], value: 6 }, - { lonlat: [109.53555747430924, 36.62184699338395], value: 6 }, - { lonlat: [109.5376787067582, 36.627153166827114], value: 6 }, - { lonlat: [109.53979414015477, 36.62881729653026], value: 6 }, - { lonlat: [109.54130516400943, 36.63016960226274], value: 6 }, - { lonlat: [109.54008425673476, 36.63148291126323], value: 6 }, - { lonlat: [109.53755782484959, 36.63369255351504], value: 6 }, - { lonlat: [109.53614579982442, 36.6360575522797], value: 6 }, - { lonlat: [109.53343812543821, 36.62040741435609], value: 6 }, - { lonlat: [109.53580803843838, 36.62277137411824], value: 6 }, - { lonlat: [109.54168042409255, 36.62849933558428], value: 6 }, - { lonlat: [109.54288050769686, 36.63006645029258], value: 6 }, - { lonlat: [109.54573448803326, 36.63312914358253], value: 6 }, - { lonlat: [109.54725728319507, 36.636077923401025], value: 6 }, - { lonlat: [109.54490753966712, 36.63712470479035], value: 6 }, - { lonlat: [109.54219474563702, 36.63804142854716], value: 6 }, - { lonlat: [109.53998618841547, 36.636568584052085], value: 6 }, - { lonlat: [109.53464796833235, 36.63649472525616], value: 6 }, - { lonlat: [109.53531650653413, 36.633497267658136], value: 6 }, - { lonlat: [109.52895761991671, 36.63899560790742], value: 6 }, - { lonlat: [109.52561492890752, 36.6410855206062], value: 6 }, - { lonlat: [109.52130829909568, 36.6436264356986], value: 6 }, - { lonlat: [109.51955144289083, 36.64125575007403], value: 6 }, - { lonlat: [109.51807443988673, 36.63976209758932], value: 6 }, - { lonlat: [109.51690838488348, 36.64107514503131], value: 6 }, - { lonlat: [109.51689283748337, 36.643941824018825], value: 6 }, - { lonlat: [109.51588225648054, 36.646106775610676], value: 6 }, - { lonlat: [109.51409430547558, 36.64724431137258], value: 6 }, - { lonlat: [109.51174664806909, 36.646327110237564], value: 6 }, - { lonlat: [109.51070497226618, 36.648567165872755], value: 6 }, - { lonlat: [109.50978767566362, 36.64972972191704], value: 6 }, - { lonlat: [109.51067387746598, 36.650967429494266], value: 6 }, - { lonlat: [109.51146679486808, 36.652280284952866], value: 6 }, - { lonlat: [109.51191766946926, 36.65361817342491], value: 6 }, - { lonlat: [109.51199540646942, 36.65525669873434], value: 6 }, - { lonlat: [109.51428087427561, 36.655191468743396], value: 6 }, - { lonlat: [109.51460736967644, 36.65357281224559], value: 6 }, - { lonlat: [109.51353459907345, 36.65593792955656], value: 6 }, - { lonlat: [109.50664710085456, 36.64933312632619], value: 6 }, - { lonlat: [109.50327331504526, 36.64723825232908], value: 6 }, - { lonlat: [109.50558987765153, 36.64807508399961], value: 28 }, - { lonlat: [109.50703578585542, 36.64720800813199], value: 29 }, - { lonlat: [109.50596301525242, 36.6462406907215], value: 28 }, - { lonlat: [109.50380192664646, 36.647478454644535], value: 6 }, - { lonlat: [109.50293172446254, 36.64689822474207], value: 6 }, - { lonlat: [109.49977744553338, 36.648514140036085], value: 6 }, - { lonlat: [109.49841675260586, 36.64788286957943], value: 5 }, - { lonlat: [109.49667830356817, 36.64754979371535], value: 5 }, - { lonlat: [109.49480514097309, 36.64623412909707], value: 5 }, - { lonlat: [109.49194575265034, 36.64800589561177], value: 5 }, - { lonlat: [109.48774678808107, 36.64818660580967], value: 5 }, - { lonlat: [109.48778573951488, 36.65030081450137], value: 23 }, - { lonlat: [109.49052013017122, 36.65182489248657], value: 34 }, - { lonlat: [109.49386216319564, 36.653097849178344], value: 23 }, - { lonlat: [109.49541243026289, 36.655375126863646], value: 34 }, - { lonlat: [109.49376867975428, 36.65881983304358], value: 5 }, - { lonlat: [109.49594216976315, 36.66097140773642], value: 5 }, - { lonlat: [109.49674456930045, 36.662419955163955], value: 5 }, - { lonlat: [109.49257676587825, 36.66373039429423], value: 5 }, - { lonlat: [109.48954634432454, 36.66561822861078], value: 5 }, - { lonlat: [109.48265911535468, 36.654995428105366], value: 5 }, - { lonlat: [109.47853819629543, 36.65495490425706], value: 5 }, - { lonlat: [109.47794031082658, 36.64600156969751], value: 5 }, - { lonlat: [109.47947610116441, 36.638089580666374], value: 65 }, - { lonlat: [109.48196313342223, 36.63989201277776], value: 66 }, - { lonlat: [109.48007581107044, 36.63626409608854], value: 45 }, - { lonlat: [109.48312727618112, 36.63616165277856], value: 43 }, - { lonlat: [109.48487349031957, 36.63719648127574], value: 23 }, - { lonlat: [109.48806606364347, 36.640221454017194], value: 65 }, - { lonlat: [109.48968880809531, 36.64396832101501], value: 66 }, - { lonlat: [109.49199945508674, 36.64370117513442], value: 77 }, - { lonlat: [109.4886481350228, 36.64628232413764], value: 5 }, - { lonlat: [109.48693719793754, 36.6481698459415], value: 5 }, - { lonlat: [109.49295193552571, 36.64621960689284], value: 6 }, - { lonlat: [109.4960034006364, 36.647282727565546], value: 5 }, - { lonlat: [109.4991959739603, 36.64675388047846], value: 5 }, - { lonlat: [109.50401129173616, 36.64690730406689], value: 5 }, - { lonlat: [109.50575750587461, 36.64410416698772], value: 5 }, - { lonlat: [109.5035879670964, 36.64221068329797], value: 5 }, - { lonlat: [109.49916069690676, 36.63886718707988], value: 5 }, - { lonlat: [109.4955447989431, 36.639105918699926], value: 34 }, - { lonlat: [109.49207000919266, 36.63564855779099], value: 34 }, - { lonlat: [109.48792495542945, 36.63128116433782], value: 23 }, - { lonlat: [109.4824393736407, 36.62725474513087], value: 43 }, - { lonlat: [109.48350796628219, 36.6240399916917], value: 5 }, - { lonlat: [109.47904752109281, 36.617139346998826], value: 5 }, - { lonlat: [109.47973483856029, 36.6163530732266], value: 5 }, - { lonlat: [109.48169304493001, 36.61519041973535], value: 6 }, - { lonlat: [109.48128150577406, 36.61652725739157], value: 5 }, - { lonlat: [109.4856636114327, 36.61250054572504], value: 6 }, - { lonlat: [109.48669837172288, 36.61390464711184], value: 5 }, - { lonlat: [109.48778868961256, 36.61110958729933], value: 5 }, - { lonlat: [109.48832343150745, 36.61186423919422], value: 5 }, - { lonlat: [109.48855260660523, 36.61062565266084], value: 5 }, - { lonlat: [109.49005960649093, 36.60966700183684], value: 5 }, - { lonlat: [109.49101103038188, 36.608943504005595], value: 5 }, - { lonlat: [109.49269164776588, 36.607944427600174], value: 5 }, - { lonlat: [109.49137909947821, 36.60774724442752], value: 5 }, - { lonlat: [109.49426114995096, 36.60713571424016], value: 5 }, - { lonlat: [109.4965699550399, 36.6053070257893], value: 5 }, - { lonlat: [109.49771583052903, 36.60506504012202], value: 5 }, - { lonlat: [109.49879225901881, 36.60545019078856], value: 5 }, - { lonlat: [109.49911865991568, 36.6049954268223], value: 5 }, - { lonlat: [109.50854172185717, 36.60498562319275], value: 5 }, - { lonlat: [109.51044938269962, 36.60552218657323], value: 5 }, - { lonlat: [109.51212316173265, 36.60707867359568], value: 5 }, - { lonlat: [109.51372557809377, 36.60793013404142], value: 5 }, - { lonlat: [109.51465329282912, 36.60842590572189], value: 5 }, - { lonlat: [109.51604810869001, 36.60896351865908], value: 5 }, - { lonlat: [109.51735209933206, 36.609239601548374], value: 6 }, - { lonlat: [109.51869501506792, 36.61021656939483], value: 6 }, - { lonlat: [109.51997305564743, 36.61025204679149], value: 6 }, - { lonlat: [109.52078399510141, 36.610674577473965], value: 6 }, - { lonlat: [109.64885541010113, 36.68368750346818], value: 77 }, - { lonlat: [109.64418083988407, 36.684106217976854], value: 77 }, - { lonlat: [109.65730463327395, 36.68351820161691], value: 6 }, - { lonlat: [109.66382903341632, 36.683373146319866], value: 53 }, - { lonlat: [109.66365404950439, 36.68117431536967], value: 54 }, - { lonlat: [109.66952850940268, 36.687351497043785], value: 56 }, - { lonlat: [109.67765276245356, 36.68821312918963], value: 33 }, - { lonlat: [109.67907763145014, 36.68818888405842], value: 23 }, - { lonlat: [109.67620289575514, 36.68570831505293], value: 34 }, - { lonlat: [109.66992847262958, 36.6839122446761], value: 6 }, - { lonlat: [109.66315409547013, 36.68135099518023], value: 6 }, - { lonlat: [109.68433055291582, 36.68853913721367], value: 6 }, - { lonlat: [109.68255571609542, 36.69068926681356], value: 6 }, - { lonlat: [109.68633036905133, 36.69126900476532], value: 77 }, - { lonlat: [109.68605539433261, 36.69273456341231], value: 77 }, - { lonlat: [109.68383059888168, 36.693435078555396], value: 6 }, - { lonlat: [109.70500365221739, 36.69928917967537], value: 77 }, - { lonlat: [109.70692847524785, 36.69970780952815], value: 77 }, - { lonlat: [109.72405190090896, 36.70298488870231], value: 6 }, - { lonlat: [109.72712178240528, 36.70196817888451], value: 34 }, - { lonlat: [109.72395293859049, 36.701623796200366], value: 34 }, - ]; - let heatMapJeojson = {}; - let heatMapFeatures = []; - heatMapList.forEach(element => { - let heatmap = turf.point(element.lonlat); - heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.BD09, gcoord.WGS84); - heatMapFeatures.push(heatmap); - }); - heatMapJeojson = turf.featureCollection(heatMapFeatures); - mapBoxVectorLayer.removeByIds(['heatMapLayer']); - mapBoxVectorLayer.addHeatMapLayer('heatMapLayer', heatMapJeojson, 'value'); - heatMapJeojson.features.forEach(feature => { - gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); - }); + // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['雨水管网', '综合视角']); } else if (FxClickName.value == '桥梁') { diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index a321fc2..19a9988 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -136,7 +136,7 @@ } } //添加热力图 - static addHeatMapLayer(layerId, geojson, value) { + static addHeatMapLayer(layerId, geojson, value, visible) { if (!newfiberMapbox.map.getLayer(layerId)) { newfiberMapbox.map.addSource(layerId, { type: 'geojson', @@ -146,6 +146,9 @@ id: layerId, type: 'heatmap', source: layerId, + layout: { + visibility: visible && visible == true ? 'visible' : 'none', + }, paint: { // Increase the heatmap weight based on frequency and property magnitude 'heatmap-weight': ['interpolate', ['linear'], ['get', value], 0, 0, 100, 1], @@ -444,7 +447,13 @@ } }); } - + //图层显示与隐藏 + static setLayerVisible(layer, visible) { + let layerShow = visible == true ? 'visible' : 'none'; + if (newfiberMapbox.map.getLayer(layer)) { + newfiberMapbox.map.setLayoutProperty(layer, 'visibility', layerShow); + } + } static remove3Dtiles() { newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } diff --git a/src/views/oneMap/LayerControl/LayerControl.vue b/src/views/oneMap/LayerControl/LayerControl.vue index e649663..18d4a56 100644 --- a/src/views/oneMap/LayerControl/LayerControl.vue +++ b/src/views/oneMap/LayerControl/LayerControl.vue @@ -524,7 +524,7 @@ AllData.LayerData[0]['children'][0].layerVisible = false; AllData.LayerData[0]['children'][1].layerVisible = false; newfiberMapbox.map.setLayoutProperty('newfiber-XYZLayer', 'visibility', 'visible'); - newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer'); + newfiberMapbox.map.moveLayer('newfiber-XYZLayer', 'buildingLayer', 'buildingLayer-top'); } //分区类图层 if (item2.areaData) { @@ -538,8 +538,10 @@ if (item2.layerKey == 'buildingLayer') { if (item2.isCheck) { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'visible'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'visible'); } else { newfiberMapbox.map.setLayoutProperty('buildingLayer', 'visibility', 'none'); + newfiberMapbox.map.setLayoutProperty('buildingLayer-top', 'visibility', 'none'); } } //河堤岸线 diff --git a/src/views/oneMap/OverallOverview/RightBox.vue b/src/views/oneMap/OverallOverview/RightBox.vue index 5a44e1e..d8aa377 100644 --- a/src/views/oneMap/OverallOverview/RightBox.vue +++ b/src/views/oneMap/OverallOverview/RightBox.vue @@ -263,388 +263,6 @@ bus.emit('FxVisible', obj); // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['燃气视角']); - let heatMapList = [ - { lonlat: [109.4583517767791, 36.64045660187989], value: 2 }, - { lonlat: [109.45915900059231, 36.639564923076406], value: 1 }, - { lonlat: [109.46064074624108, 36.63888888248738], value: 3 }, - { lonlat: [109.46175090337006, 36.63763347376713], value: 4 }, - { lonlat: [109.46233801013652, 36.63722780459428], value: 5 }, - { lonlat: [109.46275737211255, 36.63718265184453], value: 3 }, - { lonlat: [109.46340039380915, 36.63601087211503], value: 2 }, - { lonlat: [109.4634842662043, 36.639796184662536], value: 3 }, - { lonlat: [109.46681120454784, 36.635965630684304], value: 2 }, - { lonlat: [109.46751014117459, 36.63303623297878], value: 3 }, - { lonlat: [109.46764992849988, 36.63236013419859], value: 4 }, - { lonlat: [109.46801337554575, 36.63082773329404], value: 5 }, - { lonlat: [109.4677058434299, 36.629971339150515], value: 6 }, - { lonlat: [109.46790154568534, 36.62897972679855], value: 4 }, - { lonlat: [109.46820907780108, 36.62758246914724], value: 5 }, - { lonlat: [109.46846069498666, 36.625914758136716], value: 3 }, - { lonlat: [109.46435094762097, 36.63127797375913], value: 3 }, - { lonlat: [109.46493805438743, 36.62726670999692], value: 3 }, - { lonlat: [109.46518967157303, 36.625959563646546], value: 3 }, - { lonlat: [109.45336366384743, 36.6337564188794], value: 3 }, - { lonlat: [109.45450991991531, 36.63114241494354], value: 3 }, - { lonlat: [109.4557680058435, 36.6292043657803], value: 3 }, - { lonlat: [109.4545099199152, 36.62609442354592], value: 3 }, - { lonlat: [109.45330774891703, 36.62532758190564], value: 3 }, - { lonlat: [109.45825622023474, 36.62505706236186], value: 3 }, - { lonlat: [109.46314877662232, 36.62532740431396], value: 3 }, - { lonlat: [109.44662591476458, 36.62744565667445], value: 3 }, - { lonlat: [109.44139786879603, 36.62974412708136], value: 3 }, - { lonlat: [109.43645036088442, 36.63126842378145], value: 3 }, - { lonlat: [109.43211670920196, 36.63081469982216], value: 3 }, - { lonlat: [109.42868355657039, 36.632810587611026], value: 3 }, - { lonlat: [109.41793384915036, 36.634987868433505], value: 3 }, - { lonlat: [109.40921026459482, 36.63444344378062], value: 3 }, - { lonlat: [109.46858692076272, 36.62110590039618], value: 3 }, - { lonlat: [109.47035661856971, 36.61995354263662], value: 3 }, - { lonlat: [109.47258171472353, 36.61892777347618], value: 3 }, - { lonlat: [109.47334332481641, 36.6208153097412], value: 35 }, - { lonlat: [109.47401900156899, 36.620127962636424], value: 45 }, - { lonlat: [109.47436575670645, 36.61957709339732], value: 43 }, - { lonlat: [109.47556013551343, 36.61923328226432], value: 4 }, - { lonlat: [109.47708842667508, 36.61754354976672], value: 5 }, - { lonlat: [109.47910474358588, 36.61661993861554], value: 6 }, - { lonlat: [109.47944089622014, 36.616364726231225], value: 6 }, - { lonlat: [109.47757869270369, 36.615731001159105], value: 6 }, - { lonlat: [109.47590065021183, 36.61525895943912], value: 7 }, - { lonlat: [109.47548213080846, 36.614904203510264], value: 6 }, - { lonlat: [109.47457696093612, 36.61451805927941], value: 6 }, - { lonlat: [109.47548213080833, 36.61421038003272], value: 6 }, - { lonlat: [109.476835019112, 36.613808538791], value: 4 }, - { lonlat: [109.47752606277787, 36.61309282379784], value: 4 }, - { lonlat: [109.478197640425, 36.61383660779872], value: 5 }, - { lonlat: [109.47888868409086, 36.61442345137025], value: 6 }, - { lonlat: [109.47862589283756, 36.61518291568912], value: 4 }, - { lonlat: [109.47945319863473, 36.61438874695218], value: 4 }, - { lonlat: [109.48037783452571, 36.61392413291535], value: 4 }, - { lonlat: [109.48066009179765, 36.613381048298066], value: 33 }, - { lonlat: [109.47880108700613, 36.613057670788265], value: 33 }, - { lonlat: [109.47672795600828, 36.61215362328269], value: 3 }, - { lonlat: [109.47235706714471, 36.608714319110575], value: 33 }, - { lonlat: [109.47095953066176, 36.60900989208619], value: 33 }, - { lonlat: [109.47242414889578, 36.60820574067667], value: 33 }, - { lonlat: [109.47080300657555, 36.60720326624053], value: 44 }, - { lonlat: [109.46960671534613, 36.60677769970712], value: 4 }, - { lonlat: [109.4667110197535, 36.60586535117448], value: 54 }, - { lonlat: [109.46634207012195, 36.60571021211726], value: 65 }, - { lonlat: [109.48124809033756, 36.61305208261769], value: 4 }, - { lonlat: [109.48183684833916, 36.61249083700314], value: 4 }, - { lonlat: [109.48355078829951, 36.611592045362464], value: 4 }, - { lonlat: [109.4836162058552, 36.611030788941534], value: 4 }, - { lonlat: [109.48472830430275, 36.6098155271458], value: 4 }, - { lonlat: [109.4848983899476, 36.60950742186193], value: 4 }, - { lonlat: [109.48548714794921, 36.61046512927026], value: 4 }, - { lonlat: [109.48597123786165, 36.60922876138633], value: 4 }, - { lonlat: [109.48645532777408, 36.60856200129905], value: 4 }, - { lonlat: [109.48743659111014, 36.60781084557607], value: 4 }, - { lonlat: [109.48792068102257, 36.607355049157874], value: 5 }, - { lonlat: [109.48809076666744, 36.60711022678964], value: 5 }, - { lonlat: [109.48710950333127, 36.60684430590222], value: 5 }, - { lonlat: [109.48636374319577, 36.60624081857617], value: 5 }, - { lonlat: [109.48535859229459, 36.605997022060514], value: 28 }, - { lonlat: [109.48571114675235, 36.60507741447555], value: 26 }, - { lonlat: [109.4869629705518, 36.60486639408042], value: 32 }, - { lonlat: [109.48860822468815, 36.60652068303526], value: 43 }, - { lonlat: [109.48959435527298, 36.606639238856765], value: 33 }, - { lonlat: [109.49055507792285, 36.60707599046411], value: 23 }, - { lonlat: [109.49062150122646, 36.606453011511526], value: 43 }, - { lonlat: [109.4906824296868, 36.607181292824684], value: 23 }, - { lonlat: [109.49173098572089, 36.60668830758674], value: 43 }, - { lonlat: [109.49338196262373, 36.60598188730296], value: 56 }, - { lonlat: [109.49414496601992, 36.605639090280604], value: 55 }, - { lonlat: [109.49287133727367, 36.60487615143745], value: 55 }, - { lonlat: [109.49244041494259, 36.604467862285254], value: 55 }, - { lonlat: [109.49361186903214, 36.604247271956666], value: 55 }, - { lonlat: [109.49395592159959, 36.603945994095234], value: 55 }, - { lonlat: [109.49451061859614, 36.603633392114766], value: 55 }, - { lonlat: [109.49505127263073, 36.603150944228496], value: 66 }, - { lonlat: [109.49581661405635, 36.60443486991358], value: 55 }, - { lonlat: [109.49529000298357, 36.604994123879244], value: 66 }, - { lonlat: [109.49460891932945, 36.60451168465817], value: 66 }, - { lonlat: [109.4949529718969, 36.60387072220969], value: 5 }, - { lonlat: [109.4958166140561, 36.60367134909574], value: 5 }, - { lonlat: [109.49568320591762, 36.60269068866781], value: 5 }, - { lonlat: [109.49566916295554, 36.60080859328861], value: 6 }, - { lonlat: [109.49566214147451, 36.60014495272406], value: 6 }, - { lonlat: [109.494840628201, 36.599753070596016], value: 6 }, - { lonlat: [109.4965608910385, 36.60014250723452], value: 6 }, - { lonlat: [109.49708750211117, 36.60052061853767], value: 6 }, - { lonlat: [109.49651876215258, 36.60062696783045], value: 6 }, - { lonlat: [109.49725601765434, 36.60026905844781], value: 6 }, - { lonlat: [109.49813370277548, 36.601100102081844], value: 6 }, - { lonlat: [109.49785284353655, 36.60242247026715], value: 6 }, - { lonlat: [109.49832328276145, 36.60081901303621], value: 6 }, - { lonlat: [109.49783880057448, 36.59967978702087], value: 6 }, - { lonlat: [109.49802838056061, 36.599299226039754], value: 6 }, - { lonlat: [109.49848477682357, 36.59905454638016], value: 6 }, - { lonlat: [109.49689090064342, 36.59891177851914], value: 6 }, - { lonlat: [109.4978247576123, 36.59752340035382], value: 6 }, - { lonlat: [109.49701728730074, 36.596542660729575], value: 6 }, - { lonlat: [109.49685645137883, 36.595212452415], value: 6 }, - { lonlat: [109.49616132476278, 36.59372208751017], value: 6 }, - { lonlat: [109.497713072057, 36.59436068924544], value: 6 }, - { lonlat: [109.49829530434499, 36.59627757677923], value: 7 }, - { lonlat: [109.49801374925752, 36.593942855465386], value: 7 }, - { lonlat: [109.49621402796436, 36.59244561043963], value: 7 }, - { lonlat: [109.49611930579097, 36.591341185842126], value: 7 }, - { lonlat: [109.49618696448614, 36.58984388974645], value: 7 }, - { lonlat: [109.49579789965442, 36.589368310214226], value: 7 }, - { lonlat: [109.4920496079386, 36.58885313566361], value: 7 }, - { lonlat: [109.48960036317119, 36.588970902925006], value: 7 }, - { lonlat: [109.48761119753136, 36.58913232115246], value: 7 }, - { lonlat: [109.48470187363641, 36.58831158443507], value: 7 }, - { lonlat: [109.48200905756617, 36.589389680113165], value: 56 }, - { lonlat: [109.48023639975108, 36.58902015763719], value: 7 }, - { lonlat: [109.47394414109459, 36.58837402615219], value: 80 }, - { lonlat: [109.4728480702318, 36.59023783394082], value: 78 }, - { lonlat: [109.46961398459973, 36.588434956116345], value: 77 }, - { lonlat: [109.46908624677688, 36.587439603702165], value: 55 }, - { lonlat: [109.4652161694096, 36.58760966434236], value: 7 }, - { lonlat: [109.46463430463056, 36.58702899938492], value: 55 }, - { lonlat: [109.46321347203066, 36.585073258863616], value: 7 }, - { lonlat: [109.46482374897708, 36.583968727419084], value: 7 }, - { lonlat: [109.46692116852915, 36.58347534338372], value: 55 }, - { lonlat: [109.4688020802565, 36.58344032845259], value: 55 }, - { lonlat: [109.47236092762554, 36.58305607754432], value: 66 }, - { lonlat: [109.47351112544439, 36.58086012847229], value: 55 }, - { lonlat: [109.47357878413955, 36.58486317336802], value: 5 }, - { lonlat: [109.46054812145172, 36.592050037038575], value: 55 }, - { lonlat: [109.45958516192611, 36.59014334083254], value: 45 }, - { lonlat: [109.441690631703, 36.574861874203556], value: 45 }, - { lonlat: [109.44624550826747, 36.57378190194129], value: 7 }, - { lonlat: [109.4509010450875, 36.57331087985171], value: 7 }, - { lonlat: [109.45600955305757, 36.573692403602315], value: 7 }, - { lonlat: [109.45623603863253, 36.573058990448956], value: 7 }, - { lonlat: [109.46174718762488, 36.57201959088281], value: 7 }, - { lonlat: [109.46564777252813, 36.57459338262966], value: 7 }, - { lonlat: [109.47100793113714, 36.57481251327233], value: 7 }, - { lonlat: [109.47073111543428, 36.57287999199309], value: 7 }, - { lonlat: [109.47181321318158, 36.57139400720595], value: 7 }, - { lonlat: [109.47722370191836, 36.57685016603991], value: 7 }, - { lonlat: [109.48097329643825, 36.57962676684916], value: 7 }, - { lonlat: [109.49076250629228, 36.580657760474004], value: 7 }, - { lonlat: [109.4908883316117, 36.57815705967815], value: 7 }, - { lonlat: [109.48588048389708, 36.575696873317725], value: 7 }, - { lonlat: [109.48555333806642, 36.57234345586721], value: 7 }, - { lonlat: [109.48462223070236, 36.57114165197099], value: 7 }, - { lonlat: [109.48494937653292, 36.569168438097215], value: 7 }, - { lonlat: [109.48789368900827, 36.568575587318655], value: 7 }, - { lonlat: [109.48701291177198, 36.56741432474017], value: 77 }, - { lonlat: [109.48668576594132, 36.565197403953434], value: 77 }, - { lonlat: [109.48661027074958, 36.56200594032002], value: 77 }, - { lonlat: [109.48643411530227, 36.55950462918852], value: 7 }, - { lonlat: [109.47872714141864, 36.55363535583412], value: 7 }, - { lonlat: [109.47752130169793, 36.55237880798815], value: 7 }, - { lonlat: [109.47659108248483, 36.550399478960415], value: 7 }, - { lonlat: [109.47531633763725, 36.54680772057538], value: 7 }, - { lonlat: [109.47714232349988, 36.538378228993835], value: 7 }, - { lonlat: [109.47628100941364, 36.53678778825302], value: 7 }, - { lonlat: [109.49119798128915, 36.57421937037934], value: 7 }, - { lonlat: [109.49316811330803, 36.5763548006588], value: 7 }, - { lonlat: [109.49201320833134, 36.5772533638739], value: 7 }, - { lonlat: [109.49206173375048, 36.57869986536457], value: 7 }, - { lonlat: [109.49288666587658, 36.57962971205523], value: 7 }, - { lonlat: [109.4948373877278, 36.579792436760556], value: 7 }, - { lonlat: [109.49405127593694, 36.581677232061956], value: 7 }, - { lonlat: [109.49497325890142, 36.582200016243696], value: 7 }, - { lonlat: [109.49599229270427, 36.581908742939454], value: 7 }, - { lonlat: [109.49642902147689, 36.583276883316856], value: 56 }, - { lonlat: [109.49692398075254, 36.58497374115537], value: 4 }, - { lonlat: [109.49697250617166, 36.58646705928871], value: 4 }, - { lonlat: [109.49781684846545, 36.58750638888238], value: 4 }, - { lonlat: [109.49951870129331, 36.59430380170364], value: 3 }, - { lonlat: [109.49965804385573, 36.59486501809594], value: 65 }, - { lonlat: [109.49988842408676, 36.59649457072071], value: 76 }, - { lonlat: [109.50008437575242, 36.59732109333835], value: 64 }, - { lonlat: [109.49935516493218, 36.59831527959685], value: 43 }, - { lonlat: [109.50060236752009, 36.60104441193055], value: 45 }, - { lonlat: [109.50126321265897, 36.60358057739102], value: 23 }, - { lonlat: [109.49942472380532, 36.604173438687546], value: 34 }, - { lonlat: [109.5007026398301, 36.60501144006829], value: 6 }, - { lonlat: [109.49901617072663, 36.605443415517875], value: 5 }, - { lonlat: [109.50014206700124, 36.6054693718935], value: 5 }, - { lonlat: [109.50184753857336, 36.6066137836571], value: 6 }, - { lonlat: [109.50264089164449, 36.606042210978295], value: 6 }, - { lonlat: [109.50362426940333, 36.606627392739135], value: 6 }, - { lonlat: [109.5029639336135, 36.60551750543657], value: 6 }, - { lonlat: [109.50313970644957, 36.60497656754981], value: 6 }, - { lonlat: [109.50333489978382, 36.60424830824475], value: 6 }, - { lonlat: [109.50498336394963, 36.60554595245176], value: 6 }, - { lonlat: [109.5062137738025, 36.60733384990011], value: 6 }, - { lonlat: [109.50681710218589, 36.607903700917404], value: 6 }, - { lonlat: [109.5058527268957, 36.60992901196387], value: 6 }, - { lonlat: [109.50458431210518, 36.61083589220665], value: 6 }, - { lonlat: [109.5035629294087, 36.61163552050199], value: 6 }, - { lonlat: [109.50728675442862, 36.60816923300994], value: 6 }, - { lonlat: [109.50862770454853, 36.60957898993155], value: 6 }, - { lonlat: [109.50900738849452, 36.611329111002924], value: 6 }, - { lonlat: [109.5087728725542, 36.61263215550033], value: 6 }, - { lonlat: [109.51196589727925, 36.61287834022912], value: 6 }, - { lonlat: [109.51194785759148, 36.614481923277204], value: 6 }, - { lonlat: [109.5131805695851, 36.614291799340485], value: 6 }, - { lonlat: [109.51506271033638, 36.61535240611497], value: 6 }, - { lonlat: [109.51550167607066, 36.616878374906946], value: 6 }, - { lonlat: [109.5174078697389, 36.6167755151019], value: 6 }, - { lonlat: [109.51728159192487, 36.61817541867955], value: 6 }, - { lonlat: [109.51805729849644, 36.61931353190943], value: 6 }, - { lonlat: [109.52015591550028, 36.61910403021254], value: 6 }, - { lonlat: [109.52326378422758, 36.618323942249155], value: 6 }, - { lonlat: [109.52535504124248, 36.621157617292155], value: 6 }, - { lonlat: [109.52708365253223, 36.622782899894624], value: 6 }, - { lonlat: [109.53062549244765, 36.62553845807305], value: 6 }, - { lonlat: [109.53329698262276, 36.62472766573882], value: 6 }, - { lonlat: [109.53529153411093, 36.62401430655811], value: 6 }, - { lonlat: [109.53622232480538, 36.62273577119326], value: 6 }, - { lonlat: [109.53555747430924, 36.62184699338395], value: 6 }, - { lonlat: [109.5376787067582, 36.627153166827114], value: 6 }, - { lonlat: [109.53979414015477, 36.62881729653026], value: 6 }, - { lonlat: [109.54130516400943, 36.63016960226274], value: 6 }, - { lonlat: [109.54008425673476, 36.63148291126323], value: 6 }, - { lonlat: [109.53755782484959, 36.63369255351504], value: 6 }, - { lonlat: [109.53614579982442, 36.6360575522797], value: 6 }, - { lonlat: [109.53343812543821, 36.62040741435609], value: 6 }, - { lonlat: [109.53580803843838, 36.62277137411824], value: 6 }, - { lonlat: [109.54168042409255, 36.62849933558428], value: 6 }, - { lonlat: [109.54288050769686, 36.63006645029258], value: 6 }, - { lonlat: [109.54573448803326, 36.63312914358253], value: 6 }, - { lonlat: [109.54725728319507, 36.636077923401025], value: 6 }, - { lonlat: [109.54490753966712, 36.63712470479035], value: 6 }, - { lonlat: [109.54219474563702, 36.63804142854716], value: 6 }, - { lonlat: [109.53998618841547, 36.636568584052085], value: 6 }, - { lonlat: [109.53464796833235, 36.63649472525616], value: 6 }, - { lonlat: [109.53531650653413, 36.633497267658136], value: 6 }, - { lonlat: [109.52895761991671, 36.63899560790742], value: 6 }, - { lonlat: [109.52561492890752, 36.6410855206062], value: 6 }, - { lonlat: [109.52130829909568, 36.6436264356986], value: 6 }, - { lonlat: [109.51955144289083, 36.64125575007403], value: 6 }, - { lonlat: [109.51807443988673, 36.63976209758932], value: 6 }, - { lonlat: [109.51690838488348, 36.64107514503131], value: 6 }, - { lonlat: [109.51689283748337, 36.643941824018825], value: 6 }, - { lonlat: [109.51588225648054, 36.646106775610676], value: 6 }, - { lonlat: [109.51409430547558, 36.64724431137258], value: 6 }, - { lonlat: [109.51174664806909, 36.646327110237564], value: 6 }, - { lonlat: [109.51070497226618, 36.648567165872755], value: 6 }, - { lonlat: [109.50978767566362, 36.64972972191704], value: 6 }, - { lonlat: [109.51067387746598, 36.650967429494266], value: 6 }, - { lonlat: [109.51146679486808, 36.652280284952866], value: 6 }, - { lonlat: [109.51191766946926, 36.65361817342491], value: 6 }, - { lonlat: [109.51199540646942, 36.65525669873434], value: 6 }, - { lonlat: [109.51428087427561, 36.655191468743396], value: 6 }, - { lonlat: [109.51460736967644, 36.65357281224559], value: 6 }, - { lonlat: [109.51353459907345, 36.65593792955656], value: 6 }, - { lonlat: [109.50664710085456, 36.64933312632619], value: 6 }, - { lonlat: [109.50327331504526, 36.64723825232908], value: 6 }, - { lonlat: [109.50558987765153, 36.64807508399961], value: 28 }, - { lonlat: [109.50703578585542, 36.64720800813199], value: 29 }, - { lonlat: [109.50596301525242, 36.6462406907215], value: 28 }, - { lonlat: [109.50380192664646, 36.647478454644535], value: 6 }, - { lonlat: [109.50293172446254, 36.64689822474207], value: 6 }, - { lonlat: [109.49977744553338, 36.648514140036085], value: 6 }, - { lonlat: [109.49841675260586, 36.64788286957943], value: 5 }, - { lonlat: [109.49667830356817, 36.64754979371535], value: 5 }, - { lonlat: [109.49480514097309, 36.64623412909707], value: 5 }, - { lonlat: [109.49194575265034, 36.64800589561177], value: 5 }, - { lonlat: [109.48774678808107, 36.64818660580967], value: 5 }, - { lonlat: [109.48778573951488, 36.65030081450137], value: 23 }, - { lonlat: [109.49052013017122, 36.65182489248657], value: 34 }, - { lonlat: [109.49386216319564, 36.653097849178344], value: 23 }, - { lonlat: [109.49541243026289, 36.655375126863646], value: 34 }, - { lonlat: [109.49376867975428, 36.65881983304358], value: 5 }, - { lonlat: [109.49594216976315, 36.66097140773642], value: 5 }, - { lonlat: [109.49674456930045, 36.662419955163955], value: 5 }, - { lonlat: [109.49257676587825, 36.66373039429423], value: 5 }, - { lonlat: [109.48954634432454, 36.66561822861078], value: 5 }, - { lonlat: [109.48265911535468, 36.654995428105366], value: 5 }, - { lonlat: [109.47853819629543, 36.65495490425706], value: 5 }, - { lonlat: [109.47794031082658, 36.64600156969751], value: 5 }, - { lonlat: [109.47947610116441, 36.638089580666374], value: 5 }, - { lonlat: [109.48196313342223, 36.63989201277776], value: 5 }, - { lonlat: [109.48007581107044, 36.63626409608854], value: 5 }, - { lonlat: [109.48312727618112, 36.63616165277856], value: 6 }, - { lonlat: [109.48487349031957, 36.63719648127574], value: 5 }, - { lonlat: [109.48806606364347, 36.640221454017194], value: 5 }, - { lonlat: [109.48968880809531, 36.64396832101501], value: 5 }, - { lonlat: [109.49199945508674, 36.64370117513442], value: 5 }, - { lonlat: [109.4886481350228, 36.64628232413764], value: 5 }, - { lonlat: [109.48693719793754, 36.6481698459415], value: 5 }, - { lonlat: [109.49295193552571, 36.64621960689284], value: 6 }, - { lonlat: [109.4960034006364, 36.647282727565546], value: 5 }, - { lonlat: [109.4991959739603, 36.64675388047846], value: 5 }, - { lonlat: [109.50401129173616, 36.64690730406689], value: 5 }, - { lonlat: [109.50575750587461, 36.64410416698772], value: 5 }, - { lonlat: [109.5035879670964, 36.64221068329797], value: 5 }, - { lonlat: [109.49916069690676, 36.63886718707988], value: 5 }, - { lonlat: [109.4955447989431, 36.639105918699926], value: 34 }, - { lonlat: [109.49207000919266, 36.63564855779099], value: 34 }, - { lonlat: [109.48792495542945, 36.63128116433782], value: 23 }, - { lonlat: [109.4824393736407, 36.62725474513087], value: 43 }, - { lonlat: [109.48350796628219, 36.6240399916917], value: 5 }, - { lonlat: [109.47904752109281, 36.617139346998826], value: 5 }, - { lonlat: [109.47973483856029, 36.6163530732266], value: 5 }, - { lonlat: [109.48169304493001, 36.61519041973535], value: 6 }, - { lonlat: [109.48128150577406, 36.61652725739157], value: 5 }, - { lonlat: [109.4856636114327, 36.61250054572504], value: 6 }, - { lonlat: [109.48669837172288, 36.61390464711184], value: 5 }, - { lonlat: [109.48778868961256, 36.61110958729933], value: 5 }, - { lonlat: [109.48832343150745, 36.61186423919422], value: 5 }, - { lonlat: [109.48855260660523, 36.61062565266084], value: 5 }, - { lonlat: [109.49005960649093, 36.60966700183684], value: 5 }, - { lonlat: [109.49101103038188, 36.608943504005595], value: 5 }, - { lonlat: [109.49269164776588, 36.607944427600174], value: 5 }, - { lonlat: [109.49137909947821, 36.60774724442752], value: 5 }, - { lonlat: [109.49426114995096, 36.60713571424016], value: 5 }, - { lonlat: [109.4965699550399, 36.6053070257893], value: 5 }, - { lonlat: [109.49771583052903, 36.60506504012202], value: 5 }, - { lonlat: [109.49879225901881, 36.60545019078856], value: 5 }, - { lonlat: [109.49911865991568, 36.6049954268223], value: 5 }, - { lonlat: [109.50854172185717, 36.60498562319275], value: 5 }, - { lonlat: [109.51044938269962, 36.60552218657323], value: 5 }, - { lonlat: [109.51212316173265, 36.60707867359568], value: 5 }, - { lonlat: [109.51372557809377, 36.60793013404142], value: 5 }, - { lonlat: [109.51465329282912, 36.60842590572189], value: 5 }, - { lonlat: [109.51604810869001, 36.60896351865908], value: 5 }, - { lonlat: [109.51735209933206, 36.609239601548374], value: 6 }, - { lonlat: [109.51869501506792, 36.61021656939483], value: 6 }, - { lonlat: [109.51997305564743, 36.61025204679149], value: 6 }, - { lonlat: [109.52078399510141, 36.610674577473965], value: 6 }, - { lonlat: [109.64885541010113, 36.68368750346818], value: 77 }, - { lonlat: [109.64418083988407, 36.684106217976854], value: 77 }, - { lonlat: [109.65730463327395, 36.68351820161691], value: 6 }, - { lonlat: [109.66382903341632, 36.683373146319866], value: 53 }, - { lonlat: [109.66365404950439, 36.68117431536967], value: 54 }, - { lonlat: [109.66952850940268, 36.687351497043785], value: 56 }, - { lonlat: [109.67765276245356, 36.68821312918963], value: 33 }, - { lonlat: [109.67907763145014, 36.68818888405842], value: 23 }, - { lonlat: [109.67620289575514, 36.68570831505293], value: 34 }, - { lonlat: [109.66992847262958, 36.6839122446761], value: 6 }, - { lonlat: [109.66315409547013, 36.68135099518023], value: 6 }, - { lonlat: [109.68433055291582, 36.68853913721367], value: 6 }, - { lonlat: [109.68255571609542, 36.69068926681356], value: 6 }, - { lonlat: [109.68633036905133, 36.69126900476532], value: 77 }, - { lonlat: [109.68605539433261, 36.69273456341231], value: 77 }, - { lonlat: [109.68383059888168, 36.693435078555396], value: 6 }, - { lonlat: [109.70500365221739, 36.69928917967537], value: 77 }, - { lonlat: [109.70692847524785, 36.69970780952815], value: 77 }, - { lonlat: [109.72405190090896, 36.70298488870231], value: 6 }, - { lonlat: [109.72712178240528, 36.70196817888451], value: 34 }, - { lonlat: [109.72395293859049, 36.701623796200366], value: 34 }, - ]; - let heatMapJeojson = {}; - let heatMapFeatures = []; - heatMapList.forEach(element => { - let heatmap = turf.point(element.lonlat); - heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.BD09, gcoord.WGS84); - heatMapFeatures.push(heatmap); - }); - heatMapJeojson = turf.featureCollection(heatMapFeatures); - mapBoxVectorLayer.removeByIds(['heatMapLayer']); - mapBoxVectorLayer.addHeatMapLayer('heatMapLayer', heatMapJeojson, 'value'); - heatMapJeojson.features.forEach(feature => { - gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); - }); } else if (FxClickName.value == '排水') { let obj = [ { @@ -677,388 +295,7 @@ }, ]; bus.emit('FxVisible', obj); - let heatMapList = [ - { lonlat: [109.4583517767791, 36.64045660187989], value: 2 }, - { lonlat: [109.45915900059231, 36.639564923076406], value: 1 }, - { lonlat: [109.46064074624108, 36.63888888248738], value: 3 }, - { lonlat: [109.46175090337006, 36.63763347376713], value: 4 }, - { lonlat: [109.46233801013652, 36.63722780459428], value: 5 }, - { lonlat: [109.46275737211255, 36.63718265184453], value: 3 }, - { lonlat: [109.46340039380915, 36.63601087211503], value: 2 }, - { lonlat: [109.4634842662043, 36.639796184662536], value: 3 }, - { lonlat: [109.46681120454784, 36.635965630684304], value: 2 }, - { lonlat: [109.46751014117459, 36.63303623297878], value: 3 }, - { lonlat: [109.46764992849988, 36.63236013419859], value: 4 }, - { lonlat: [109.46801337554575, 36.63082773329404], value: 5 }, - { lonlat: [109.4677058434299, 36.629971339150515], value: 6 }, - { lonlat: [109.46790154568534, 36.62897972679855], value: 4 }, - { lonlat: [109.46820907780108, 36.62758246914724], value: 5 }, - { lonlat: [109.46846069498666, 36.625914758136716], value: 3 }, - { lonlat: [109.46435094762097, 36.63127797375913], value: 3 }, - { lonlat: [109.46493805438743, 36.62726670999692], value: 3 }, - { lonlat: [109.46518967157303, 36.625959563646546], value: 3 }, - { lonlat: [109.45336366384743, 36.6337564188794], value: 3 }, - { lonlat: [109.45450991991531, 36.63114241494354], value: 3 }, - { lonlat: [109.4557680058435, 36.6292043657803], value: 3 }, - { lonlat: [109.4545099199152, 36.62609442354592], value: 3 }, - { lonlat: [109.45330774891703, 36.62532758190564], value: 3 }, - { lonlat: [109.45825622023474, 36.62505706236186], value: 3 }, - { lonlat: [109.46314877662232, 36.62532740431396], value: 3 }, - { lonlat: [109.44662591476458, 36.62744565667445], value: 3 }, - { lonlat: [109.44139786879603, 36.62974412708136], value: 3 }, - { lonlat: [109.43645036088442, 36.63126842378145], value: 3 }, - { lonlat: [109.43211670920196, 36.63081469982216], value: 3 }, - { lonlat: [109.42868355657039, 36.632810587611026], value: 3 }, - { lonlat: [109.41793384915036, 36.634987868433505], value: 3 }, - { lonlat: [109.40921026459482, 36.63444344378062], value: 3 }, - { lonlat: [109.46858692076272, 36.62110590039618], value: 3 }, - { lonlat: [109.47035661856971, 36.61995354263662], value: 3 }, - { lonlat: [109.47258171472353, 36.61892777347618], value: 3 }, - { lonlat: [109.47334332481641, 36.6208153097412], value: 35 }, - { lonlat: [109.47401900156899, 36.620127962636424], value: 45 }, - { lonlat: [109.47436575670645, 36.61957709339732], value: 43 }, - { lonlat: [109.47556013551343, 36.61923328226432], value: 4 }, - { lonlat: [109.47708842667508, 36.61754354976672], value: 5 }, - { lonlat: [109.47910474358588, 36.61661993861554], value: 6 }, - { lonlat: [109.47944089622014, 36.616364726231225], value: 6 }, - { lonlat: [109.47757869270369, 36.615731001159105], value: 6 }, - { lonlat: [109.47590065021183, 36.61525895943912], value: 7 }, - { lonlat: [109.47548213080846, 36.614904203510264], value: 54 }, - { lonlat: [109.47457696093612, 36.61451805927941], value: 34 }, - { lonlat: [109.47548213080833, 36.61421038003272], value: 25 }, - { lonlat: [109.476835019112, 36.613808538791], value: 34 }, - { lonlat: [109.47752606277787, 36.61309282379784], value: 4 }, - { lonlat: [109.478197640425, 36.61383660779872], value: 5 }, - { lonlat: [109.47888868409086, 36.61442345137025], value: 6 }, - { lonlat: [109.47862589283756, 36.61518291568912], value: 4 }, - { lonlat: [109.47945319863473, 36.61438874695218], value: 4 }, - { lonlat: [109.48037783452571, 36.61392413291535], value: 4 }, - { lonlat: [109.48066009179765, 36.613381048298066], value: 4 }, - { lonlat: [109.47880108700613, 36.613057670788265], value: 4 }, - { lonlat: [109.47672795600828, 36.61215362328269], value: 3 }, - { lonlat: [109.47235706714471, 36.608714319110575], value: 4 }, - { lonlat: [109.47095953066176, 36.60900989208619], value: 4 }, - { lonlat: [109.47242414889578, 36.60820574067667], value: 4 }, - { lonlat: [109.47080300657555, 36.60720326624053], value: 4 }, - { lonlat: [109.46960671534613, 36.60677769970712], value: 4 }, - { lonlat: [109.4667110197535, 36.60586535117448], value: 4 }, - { lonlat: [109.46634207012195, 36.60571021211726], value: 4 }, - { lonlat: [109.48124809033756, 36.61305208261769], value: 4 }, - { lonlat: [109.48183684833916, 36.61249083700314], value: 4 }, - { lonlat: [109.48355078829951, 36.611592045362464], value: 4 }, - { lonlat: [109.4836162058552, 36.611030788941534], value: 4 }, - { lonlat: [109.48472830430275, 36.6098155271458], value: 4 }, - { lonlat: [109.4848983899476, 36.60950742186193], value: 4 }, - { lonlat: [109.48548714794921, 36.61046512927026], value: 4 }, - { lonlat: [109.48597123786165, 36.60922876138633], value: 4 }, - { lonlat: [109.48645532777408, 36.60856200129905], value: 4 }, - { lonlat: [109.48743659111014, 36.60781084557607], value: 4 }, - { lonlat: [109.48792068102257, 36.607355049157874], value: 5 }, - { lonlat: [109.48809076666744, 36.60711022678964], value: 5 }, - { lonlat: [109.48710950333127, 36.60684430590222], value: 5 }, - { lonlat: [109.48636374319577, 36.60624081857617], value: 5 }, - { lonlat: [109.48535859229459, 36.605997022060514], value: 28 }, - { lonlat: [109.48571114675235, 36.60507741447555], value: 26 }, - { lonlat: [109.4869629705518, 36.60486639408042], value: 32 }, - { lonlat: [109.48860822468815, 36.60652068303526], value: 43 }, - { lonlat: [109.48959435527298, 36.606639238856765], value: 33 }, - { lonlat: [109.49055507792285, 36.60707599046411], value: 23 }, - { lonlat: [109.49062150122646, 36.606453011511526], value: 43 }, - { lonlat: [109.4906824296868, 36.607181292824684], value: 23 }, - { lonlat: [109.49173098572089, 36.60668830758674], value: 43 }, - { lonlat: [109.49338196262373, 36.60598188730296], value: 56 }, - { lonlat: [109.49414496601992, 36.605639090280604], value: 55 }, - { lonlat: [109.49287133727367, 36.60487615143745], value: 55 }, - { lonlat: [109.49244041494259, 36.604467862285254], value: 55 }, - { lonlat: [109.49361186903214, 36.604247271956666], value: 55 }, - { lonlat: [109.49395592159959, 36.603945994095234], value: 55 }, - { lonlat: [109.49451061859614, 36.603633392114766], value: 55 }, - { lonlat: [109.49505127263073, 36.603150944228496], value: 66 }, - { lonlat: [109.49581661405635, 36.60443486991358], value: 55 }, - { lonlat: [109.49529000298357, 36.604994123879244], value: 66 }, - { lonlat: [109.49460891932945, 36.60451168465817], value: 66 }, - { lonlat: [109.4949529718969, 36.60387072220969], value: 5 }, - { lonlat: [109.4958166140561, 36.60367134909574], value: 5 }, - { lonlat: [109.49568320591762, 36.60269068866781], value: 5 }, - { lonlat: [109.49566916295554, 36.60080859328861], value: 6 }, - { lonlat: [109.49566214147451, 36.60014495272406], value: 6 }, - { lonlat: [109.494840628201, 36.599753070596016], value: 6 }, - { lonlat: [109.4965608910385, 36.60014250723452], value: 6 }, - { lonlat: [109.49708750211117, 36.60052061853767], value: 6 }, - { lonlat: [109.49651876215258, 36.60062696783045], value: 6 }, - { lonlat: [109.49725601765434, 36.60026905844781], value: 6 }, - { lonlat: [109.49813370277548, 36.601100102081844], value: 6 }, - { lonlat: [109.49785284353655, 36.60242247026715], value: 6 }, - { lonlat: [109.49832328276145, 36.60081901303621], value: 6 }, - { lonlat: [109.49783880057448, 36.59967978702087], value: 6 }, - { lonlat: [109.49802838056061, 36.599299226039754], value: 6 }, - { lonlat: [109.49848477682357, 36.59905454638016], value: 6 }, - { lonlat: [109.49689090064342, 36.59891177851914], value: 6 }, - { lonlat: [109.4978247576123, 36.59752340035382], value: 6 }, - { lonlat: [109.49701728730074, 36.596542660729575], value: 6 }, - { lonlat: [109.49685645137883, 36.595212452415], value: 6 }, - { lonlat: [109.49616132476278, 36.59372208751017], value: 6 }, - { lonlat: [109.497713072057, 36.59436068924544], value: 6 }, - { lonlat: [109.49829530434499, 36.59627757677923], value: 7 }, - { lonlat: [109.49801374925752, 36.593942855465386], value: 7 }, - { lonlat: [109.49621402796436, 36.59244561043963], value: 7 }, - { lonlat: [109.49611930579097, 36.591341185842126], value: 7 }, - { lonlat: [109.49618696448614, 36.58984388974645], value: 7 }, - { lonlat: [109.49579789965442, 36.589368310214226], value: 7 }, - { lonlat: [109.4920496079386, 36.58885313566361], value: 7 }, - { lonlat: [109.48960036317119, 36.588970902925006], value: 7 }, - { lonlat: [109.48761119753136, 36.58913232115246], value: 7 }, - { lonlat: [109.48470187363641, 36.58831158443507], value: 7 }, - { lonlat: [109.48200905756617, 36.589389680113165], value: 56 }, - { lonlat: [109.48023639975108, 36.58902015763719], value: 7 }, - { lonlat: [109.47394414109459, 36.58837402615219], value: 80 }, - { lonlat: [109.4728480702318, 36.59023783394082], value: 78 }, - { lonlat: [109.46961398459973, 36.588434956116345], value: 77 }, - { lonlat: [109.46908624677688, 36.587439603702165], value: 55 }, - { lonlat: [109.4652161694096, 36.58760966434236], value: 7 }, - { lonlat: [109.46463430463056, 36.58702899938492], value: 55 }, - { lonlat: [109.46321347203066, 36.585073258863616], value: 7 }, - { lonlat: [109.46482374897708, 36.583968727419084], value: 7 }, - { lonlat: [109.46692116852915, 36.58347534338372], value: 55 }, - { lonlat: [109.4688020802565, 36.58344032845259], value: 55 }, - { lonlat: [109.47236092762554, 36.58305607754432], value: 66 }, - { lonlat: [109.47351112544439, 36.58086012847229], value: 55 }, - { lonlat: [109.47357878413955, 36.58486317336802], value: 5 }, - { lonlat: [109.46054812145172, 36.592050037038575], value: 55 }, - { lonlat: [109.45958516192611, 36.59014334083254], value: 45 }, - { lonlat: [109.441690631703, 36.574861874203556], value: 45 }, - { lonlat: [109.44624550826747, 36.57378190194129], value: 7 }, - { lonlat: [109.4509010450875, 36.57331087985171], value: 7 }, - { lonlat: [109.45600955305757, 36.573692403602315], value: 7 }, - { lonlat: [109.45623603863253, 36.573058990448956], value: 7 }, - { lonlat: [109.46174718762488, 36.57201959088281], value: 7 }, - { lonlat: [109.46564777252813, 36.57459338262966], value: 7 }, - { lonlat: [109.47100793113714, 36.57481251327233], value: 7 }, - { lonlat: [109.47073111543428, 36.57287999199309], value: 7 }, - { lonlat: [109.47181321318158, 36.57139400720595], value: 7 }, - { lonlat: [109.47722370191836, 36.57685016603991], value: 7 }, - { lonlat: [109.48097329643825, 36.57962676684916], value: 7 }, - { lonlat: [109.49076250629228, 36.580657760474004], value: 7 }, - { lonlat: [109.4908883316117, 36.57815705967815], value: 7 }, - { lonlat: [109.48588048389708, 36.575696873317725], value: 7 }, - { lonlat: [109.48555333806642, 36.57234345586721], value: 7 }, - { lonlat: [109.48462223070236, 36.57114165197099], value: 7 }, - { lonlat: [109.48494937653292, 36.569168438097215], value: 7 }, - { lonlat: [109.48789368900827, 36.568575587318655], value: 7 }, - { lonlat: [109.48701291177198, 36.56741432474017], value: 77 }, - { lonlat: [109.48668576594132, 36.565197403953434], value: 77 }, - { lonlat: [109.48661027074958, 36.56200594032002], value: 77 }, - { lonlat: [109.48643411530227, 36.55950462918852], value: 7 }, - { lonlat: [109.47872714141864, 36.55363535583412], value: 7 }, - { lonlat: [109.47752130169793, 36.55237880798815], value: 7 }, - { lonlat: [109.47659108248483, 36.550399478960415], value: 7 }, - { lonlat: [109.47531633763725, 36.54680772057538], value: 7 }, - { lonlat: [109.47714232349988, 36.538378228993835], value: 7 }, - { lonlat: [109.47628100941364, 36.53678778825302], value: 7 }, - { lonlat: [109.49119798128915, 36.57421937037934], value: 7 }, - { lonlat: [109.49316811330803, 36.5763548006588], value: 7 }, - { lonlat: [109.49201320833134, 36.5772533638739], value: 7 }, - { lonlat: [109.49206173375048, 36.57869986536457], value: 7 }, - { lonlat: [109.49288666587658, 36.57962971205523], value: 7 }, - { lonlat: [109.4948373877278, 36.579792436760556], value: 7 }, - { lonlat: [109.49405127593694, 36.581677232061956], value: 7 }, - { lonlat: [109.49497325890142, 36.582200016243696], value: 7 }, - { lonlat: [109.49599229270427, 36.581908742939454], value: 7 }, - { lonlat: [109.49642902147689, 36.583276883316856], value: 56 }, - { lonlat: [109.49692398075254, 36.58497374115537], value: 4 }, - { lonlat: [109.49697250617166, 36.58646705928871], value: 4 }, - { lonlat: [109.49781684846545, 36.58750638888238], value: 4 }, - { lonlat: [109.49951870129331, 36.59430380170364], value: 3 }, - { lonlat: [109.49965804385573, 36.59486501809594], value: 65 }, - { lonlat: [109.49988842408676, 36.59649457072071], value: 76 }, - { lonlat: [109.50008437575242, 36.59732109333835], value: 64 }, - { lonlat: [109.49935516493218, 36.59831527959685], value: 43 }, - { lonlat: [109.50060236752009, 36.60104441193055], value: 45 }, - { lonlat: [109.50126321265897, 36.60358057739102], value: 23 }, - { lonlat: [109.49942472380532, 36.604173438687546], value: 34 }, - { lonlat: [109.5007026398301, 36.60501144006829], value: 6 }, - { lonlat: [109.49901617072663, 36.605443415517875], value: 5 }, - { lonlat: [109.50014206700124, 36.6054693718935], value: 5 }, - { lonlat: [109.50184753857336, 36.6066137836571], value: 6 }, - { lonlat: [109.50264089164449, 36.606042210978295], value: 6 }, - { lonlat: [109.50362426940333, 36.606627392739135], value: 6 }, - { lonlat: [109.5029639336135, 36.60551750543657], value: 6 }, - { lonlat: [109.50313970644957, 36.60497656754981], value: 6 }, - { lonlat: [109.50333489978382, 36.60424830824475], value: 6 }, - { lonlat: [109.50498336394963, 36.60554595245176], value: 6 }, - { lonlat: [109.5062137738025, 36.60733384990011], value: 6 }, - { lonlat: [109.50681710218589, 36.607903700917404], value: 6 }, - { lonlat: [109.5058527268957, 36.60992901196387], value: 6 }, - { lonlat: [109.50458431210518, 36.61083589220665], value: 6 }, - { lonlat: [109.5035629294087, 36.61163552050199], value: 6 }, - { lonlat: [109.50728675442862, 36.60816923300994], value: 6 }, - { lonlat: [109.50862770454853, 36.60957898993155], value: 6 }, - { lonlat: [109.50900738849452, 36.611329111002924], value: 6 }, - { lonlat: [109.5087728725542, 36.61263215550033], value: 6 }, - { lonlat: [109.51196589727925, 36.61287834022912], value: 6 }, - { lonlat: [109.51194785759148, 36.614481923277204], value: 6 }, - { lonlat: [109.5131805695851, 36.614291799340485], value: 6 }, - { lonlat: [109.51506271033638, 36.61535240611497], value: 6 }, - { lonlat: [109.51550167607066, 36.616878374906946], value: 6 }, - { lonlat: [109.5174078697389, 36.6167755151019], value: 6 }, - { lonlat: [109.51728159192487, 36.61817541867955], value: 6 }, - { lonlat: [109.51805729849644, 36.61931353190943], value: 6 }, - { lonlat: [109.52015591550028, 36.61910403021254], value: 6 }, - { lonlat: [109.52326378422758, 36.618323942249155], value: 6 }, - { lonlat: [109.52535504124248, 36.621157617292155], value: 6 }, - { lonlat: [109.52708365253223, 36.622782899894624], value: 6 }, - { lonlat: [109.53062549244765, 36.62553845807305], value: 6 }, - { lonlat: [109.53329698262276, 36.62472766573882], value: 6 }, - { lonlat: [109.53529153411093, 36.62401430655811], value: 6 }, - { lonlat: [109.53622232480538, 36.62273577119326], value: 6 }, - { lonlat: [109.53555747430924, 36.62184699338395], value: 6 }, - { lonlat: [109.5376787067582, 36.627153166827114], value: 6 }, - { lonlat: [109.53979414015477, 36.62881729653026], value: 6 }, - { lonlat: [109.54130516400943, 36.63016960226274], value: 6 }, - { lonlat: [109.54008425673476, 36.63148291126323], value: 6 }, - { lonlat: [109.53755782484959, 36.63369255351504], value: 6 }, - { lonlat: [109.53614579982442, 36.6360575522797], value: 6 }, - { lonlat: [109.53343812543821, 36.62040741435609], value: 6 }, - { lonlat: [109.53580803843838, 36.62277137411824], value: 6 }, - { lonlat: [109.54168042409255, 36.62849933558428], value: 6 }, - { lonlat: [109.54288050769686, 36.63006645029258], value: 6 }, - { lonlat: [109.54573448803326, 36.63312914358253], value: 6 }, - { lonlat: [109.54725728319507, 36.636077923401025], value: 6 }, - { lonlat: [109.54490753966712, 36.63712470479035], value: 6 }, - { lonlat: [109.54219474563702, 36.63804142854716], value: 6 }, - { lonlat: [109.53998618841547, 36.636568584052085], value: 6 }, - { lonlat: [109.53464796833235, 36.63649472525616], value: 6 }, - { lonlat: [109.53531650653413, 36.633497267658136], value: 6 }, - { lonlat: [109.52895761991671, 36.63899560790742], value: 6 }, - { lonlat: [109.52561492890752, 36.6410855206062], value: 6 }, - { lonlat: [109.52130829909568, 36.6436264356986], value: 6 }, - { lonlat: [109.51955144289083, 36.64125575007403], value: 6 }, - { lonlat: [109.51807443988673, 36.63976209758932], value: 6 }, - { lonlat: [109.51690838488348, 36.64107514503131], value: 6 }, - { lonlat: [109.51689283748337, 36.643941824018825], value: 6 }, - { lonlat: [109.51588225648054, 36.646106775610676], value: 6 }, - { lonlat: [109.51409430547558, 36.64724431137258], value: 6 }, - { lonlat: [109.51174664806909, 36.646327110237564], value: 6 }, - { lonlat: [109.51070497226618, 36.648567165872755], value: 6 }, - { lonlat: [109.50978767566362, 36.64972972191704], value: 6 }, - { lonlat: [109.51067387746598, 36.650967429494266], value: 6 }, - { lonlat: [109.51146679486808, 36.652280284952866], value: 6 }, - { lonlat: [109.51191766946926, 36.65361817342491], value: 6 }, - { lonlat: [109.51199540646942, 36.65525669873434], value: 6 }, - { lonlat: [109.51428087427561, 36.655191468743396], value: 6 }, - { lonlat: [109.51460736967644, 36.65357281224559], value: 6 }, - { lonlat: [109.51353459907345, 36.65593792955656], value: 6 }, - { lonlat: [109.50664710085456, 36.64933312632619], value: 6 }, - { lonlat: [109.50327331504526, 36.64723825232908], value: 6 }, - { lonlat: [109.50558987765153, 36.64807508399961], value: 28 }, - { lonlat: [109.50703578585542, 36.64720800813199], value: 29 }, - { lonlat: [109.50596301525242, 36.6462406907215], value: 28 }, - { lonlat: [109.50380192664646, 36.647478454644535], value: 6 }, - { lonlat: [109.50293172446254, 36.64689822474207], value: 6 }, - { lonlat: [109.49977744553338, 36.648514140036085], value: 6 }, - { lonlat: [109.49841675260586, 36.64788286957943], value: 5 }, - { lonlat: [109.49667830356817, 36.64754979371535], value: 5 }, - { lonlat: [109.49480514097309, 36.64623412909707], value: 5 }, - { lonlat: [109.49194575265034, 36.64800589561177], value: 5 }, - { lonlat: [109.48774678808107, 36.64818660580967], value: 5 }, - { lonlat: [109.48778573951488, 36.65030081450137], value: 23 }, - { lonlat: [109.49052013017122, 36.65182489248657], value: 34 }, - { lonlat: [109.49386216319564, 36.653097849178344], value: 23 }, - { lonlat: [109.49541243026289, 36.655375126863646], value: 34 }, - { lonlat: [109.49376867975428, 36.65881983304358], value: 5 }, - { lonlat: [109.49594216976315, 36.66097140773642], value: 5 }, - { lonlat: [109.49674456930045, 36.662419955163955], value: 5 }, - { lonlat: [109.49257676587825, 36.66373039429423], value: 5 }, - { lonlat: [109.48954634432454, 36.66561822861078], value: 5 }, - { lonlat: [109.48265911535468, 36.654995428105366], value: 5 }, - { lonlat: [109.47853819629543, 36.65495490425706], value: 5 }, - { lonlat: [109.47794031082658, 36.64600156969751], value: 5 }, - { lonlat: [109.47947610116441, 36.638089580666374], value: 65 }, - { lonlat: [109.48196313342223, 36.63989201277776], value: 66 }, - { lonlat: [109.48007581107044, 36.63626409608854], value: 45 }, - { lonlat: [109.48312727618112, 36.63616165277856], value: 43 }, - { lonlat: [109.48487349031957, 36.63719648127574], value: 23 }, - { lonlat: [109.48806606364347, 36.640221454017194], value: 65 }, - { lonlat: [109.48968880809531, 36.64396832101501], value: 66 }, - { lonlat: [109.49199945508674, 36.64370117513442], value: 77 }, - { lonlat: [109.4886481350228, 36.64628232413764], value: 5 }, - { lonlat: [109.48693719793754, 36.6481698459415], value: 5 }, - { lonlat: [109.49295193552571, 36.64621960689284], value: 6 }, - { lonlat: [109.4960034006364, 36.647282727565546], value: 5 }, - { lonlat: [109.4991959739603, 36.64675388047846], value: 5 }, - { lonlat: [109.50401129173616, 36.64690730406689], value: 5 }, - { lonlat: [109.50575750587461, 36.64410416698772], value: 5 }, - { lonlat: [109.5035879670964, 36.64221068329797], value: 5 }, - { lonlat: [109.49916069690676, 36.63886718707988], value: 5 }, - { lonlat: [109.4955447989431, 36.639105918699926], value: 34 }, - { lonlat: [109.49207000919266, 36.63564855779099], value: 34 }, - { lonlat: [109.48792495542945, 36.63128116433782], value: 23 }, - { lonlat: [109.4824393736407, 36.62725474513087], value: 43 }, - { lonlat: [109.48350796628219, 36.6240399916917], value: 5 }, - { lonlat: [109.47904752109281, 36.617139346998826], value: 5 }, - { lonlat: [109.47973483856029, 36.6163530732266], value: 5 }, - { lonlat: [109.48169304493001, 36.61519041973535], value: 6 }, - { lonlat: [109.48128150577406, 36.61652725739157], value: 5 }, - { lonlat: [109.4856636114327, 36.61250054572504], value: 6 }, - { lonlat: [109.48669837172288, 36.61390464711184], value: 5 }, - { lonlat: [109.48778868961256, 36.61110958729933], value: 5 }, - { lonlat: [109.48832343150745, 36.61186423919422], value: 5 }, - { lonlat: [109.48855260660523, 36.61062565266084], value: 5 }, - { lonlat: [109.49005960649093, 36.60966700183684], value: 5 }, - { lonlat: [109.49101103038188, 36.608943504005595], value: 5 }, - { lonlat: [109.49269164776588, 36.607944427600174], value: 5 }, - { lonlat: [109.49137909947821, 36.60774724442752], value: 5 }, - { lonlat: [109.49426114995096, 36.60713571424016], value: 5 }, - { lonlat: [109.4965699550399, 36.6053070257893], value: 5 }, - { lonlat: [109.49771583052903, 36.60506504012202], value: 5 }, - { lonlat: [109.49879225901881, 36.60545019078856], value: 5 }, - { lonlat: [109.49911865991568, 36.6049954268223], value: 5 }, - { lonlat: [109.50854172185717, 36.60498562319275], value: 5 }, - { lonlat: [109.51044938269962, 36.60552218657323], value: 5 }, - { lonlat: [109.51212316173265, 36.60707867359568], value: 5 }, - { lonlat: [109.51372557809377, 36.60793013404142], value: 5 }, - { lonlat: [109.51465329282912, 36.60842590572189], value: 5 }, - { lonlat: [109.51604810869001, 36.60896351865908], value: 5 }, - { lonlat: [109.51735209933206, 36.609239601548374], value: 6 }, - { lonlat: [109.51869501506792, 36.61021656939483], value: 6 }, - { lonlat: [109.51997305564743, 36.61025204679149], value: 6 }, - { lonlat: [109.52078399510141, 36.610674577473965], value: 6 }, - { lonlat: [109.64885541010113, 36.68368750346818], value: 77 }, - { lonlat: [109.64418083988407, 36.684106217976854], value: 77 }, - { lonlat: [109.65730463327395, 36.68351820161691], value: 6 }, - { lonlat: [109.66382903341632, 36.683373146319866], value: 53 }, - { lonlat: [109.66365404950439, 36.68117431536967], value: 54 }, - { lonlat: [109.66952850940268, 36.687351497043785], value: 56 }, - { lonlat: [109.67765276245356, 36.68821312918963], value: 33 }, - { lonlat: [109.67907763145014, 36.68818888405842], value: 23 }, - { lonlat: [109.67620289575514, 36.68570831505293], value: 34 }, - { lonlat: [109.66992847262958, 36.6839122446761], value: 6 }, - { lonlat: [109.66315409547013, 36.68135099518023], value: 6 }, - { lonlat: [109.68433055291582, 36.68853913721367], value: 6 }, - { lonlat: [109.68255571609542, 36.69068926681356], value: 6 }, - { lonlat: [109.68633036905133, 36.69126900476532], value: 77 }, - { lonlat: [109.68605539433261, 36.69273456341231], value: 77 }, - { lonlat: [109.68383059888168, 36.693435078555396], value: 6 }, - { lonlat: [109.70500365221739, 36.69928917967537], value: 77 }, - { lonlat: [109.70692847524785, 36.69970780952815], value: 77 }, - { lonlat: [109.72405190090896, 36.70298488870231], value: 6 }, - { lonlat: [109.72712178240528, 36.70196817888451], value: 34 }, - { lonlat: [109.72395293859049, 36.701623796200366], value: 34 }, - ]; - let heatMapJeojson = {}; - let heatMapFeatures = []; - heatMapList.forEach(element => { - let heatmap = turf.point(element.lonlat); - heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.BD09, gcoord.WGS84); - heatMapFeatures.push(heatmap); - }); - heatMapJeojson = turf.featureCollection(heatMapFeatures); - mapBoxVectorLayer.removeByIds(['heatMapLayer']); - mapBoxVectorLayer.addHeatMapLayer('heatMapLayer', heatMapJeojson, 'value'); - heatMapJeojson.features.forEach(feature => { - gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); - }); + // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['雨水管网', '综合视角']); } else if (FxClickName.value == '桥梁') { diff --git a/src/views/oneMap/index.vue b/src/views/oneMap/index.vue index 2d4ea06..96c835b 100644 --- a/src/views/oneMap/index.vue +++ b/src/views/oneMap/index.vue @@ -5,20 +5,14 @@