diff --git a/src/assets/newImgs/building_wall.png b/src/assets/newImgs/building_wall.png new file mode 100644 index 0000000..bbf204b --- /dev/null +++ b/src/assets/newImgs/building_wall.png Binary files differ diff --git a/src/assets/newImgs/building_wall.png b/src/assets/newImgs/building_wall.png new file mode 100644 index 0000000..bbf204b --- /dev/null +++ b/src/assets/newImgs/building_wall.png Binary files differ diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index 9f9762f..a321fc2 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -446,9 +446,7 @@ } static remove3Dtiles() { - let deckOverlay = null; - deckOverlay = newfiberMapbox.map._controls.filter(i => i.constructor.name == 'MapboxOverlay')[0]; - deckOverlay && deckOverlay.setProps({ layers: [] }); + newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } static load3DTiles(name, id, url) { diff --git a/src/assets/newImgs/building_wall.png b/src/assets/newImgs/building_wall.png new file mode 100644 index 0000000..bbf204b --- /dev/null +++ b/src/assets/newImgs/building_wall.png Binary files differ diff --git a/src/utils/GISdocument/mapboxVectorLayer.js b/src/utils/GISdocument/mapboxVectorLayer.js index 9f9762f..a321fc2 100644 --- a/src/utils/GISdocument/mapboxVectorLayer.js +++ b/src/utils/GISdocument/mapboxVectorLayer.js @@ -446,9 +446,7 @@ } static remove3Dtiles() { - let deckOverlay = null; - deckOverlay = newfiberMapbox.map._controls.filter(i => i.constructor.name == 'MapboxOverlay')[0]; - deckOverlay && deckOverlay.setProps({ layers: [] }); + newfiberMapbox.map._controls.filter(i => i._deck).forEach(i => i.setProps({ layers: [] })); } static load3DTiles(name, id, url) { diff --git a/src/views/oneMap/map/newfiberMapBox.vue b/src/views/oneMap/map/newfiberMapBox.vue index a9e1b55..d06d661 100644 --- a/src/views/oneMap/map/newfiberMapBox.vue +++ b/src/views/oneMap/map/newfiberMapBox.vue @@ -11,6 +11,7 @@ import yanAnRoad from '@/assets/yanAnRoad.json'; import yanAnWater from '@/assets/yanAnWater.json'; import building_icon from '@/assets/newImgs/building_icon.png'; +import building_wall from '@/assets/newImgs/building_wall.png'; export default { components: {}, props: { @@ -491,7 +492,7 @@ source: "buildingSource", // //绘画功能 paint: { - 'fill-extrusion-color': 'rgba(0,63,95,1)', + 'fill-extrusion-color': 'rgba(100,100,100,1)', 'fill-extrusion-height': ['+',['get', 'height_3'],0.1], 'fill-extrusion-base': ['get', 'height_3'], 'fill-extrusion-opacity': 1,