diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index 42d30fa..9f9762f 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -173,7 +173,7 @@ 'rgb(178,24,43)', ], // Adjust the heatmap radius by zoom level - 'heatmap-radius': ['interpolate', ['linear'], ['zoom'], 0, 2, 9, 20], + 'heatmap-radius': ['interpolate', ['linear'], ['zoom'], 0, 2, 9, 30], // Transition from heatmap to circle layer by zoom level 'heatmap-opacity': ['interpolate', ['linear'], ['zoom'], 1, 0, 15, 1], }, diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index 42d30fa..9f9762f 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -173,7 +173,7 @@ 'rgb(178,24,43)', ], // Adjust the heatmap radius by zoom level - 'heatmap-radius': ['interpolate', ['linear'], ['zoom'], 0, 2, 9, 20], + 'heatmap-radius': ['interpolate', ['linear'], ['zoom'], 0, 2, 9, 30], // Transition from heatmap to circle layer by zoom level 'heatmap-opacity': ['interpolate', ['linear'], ['zoom'], 1, 0, 15, 1], }, diff --git a/src/views/oneMap/OverallOverview/RightBox.vue b/src/views/oneMap/OverallOverview/RightBox.vue index 2157ec9..5a44e1e 100644 --- a/src/views/oneMap/OverallOverview/RightBox.vue +++ b/src/views/oneMap/OverallOverview/RightBox.vue @@ -636,14 +636,14 @@ heatMapList.forEach(element => { let heatmap = turf.point(element.lonlat); heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.GCJ02, gcoord.WGS84); + 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.GCJ02); + gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); }); } else if (FxClickName.value == '排水') { let obj = [ @@ -1050,14 +1050,14 @@ heatMapList.forEach(element => { let heatmap = turf.point(element.lonlat); heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.GCJ02, gcoord.WGS84); + 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.GCJ02); + gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); }); // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['雨水管网', '综合视角']); @@ -1151,14 +1151,14 @@ heatMapList.forEach(element => { let heatmap = turf.point(element.lonlat); heatmap.properties.value = element.value; - gcoord.transform(heatmap, gcoord.GCJ02, gcoord.WGS84); + 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.GCJ02); + gcoord.transform(feature, gcoord.WGS84, gcoord.BD09); }); // bus.emit('clearAllLayer'); // bus.emit('SetLayerShow', ['仿真地图', '桥梁视角']);