/** * 工具栏-图层 */ import Bus from "@tools/Bus"; export default { methods: { // 打开工程树添加数据弹窗【map/layerTree/Layer.vue】 openAddLayerPopup(type) { Bus.$emit("addLayer", type); }, // 在线地图 onlineMap(){ this.openAddLayerPopup("onlineMap"); }, // Arcgis影像 ArcGIS() { this.openAddLayerPopup("arcgis"); }, // WMS影像 WMS() { this.openAddLayerPopup("wms"); }, // WMTS影像 WMTS() { this.openAddLayerPopup("wmts"); }, // 本地切片服务 localT() { this.openAddLayerPopup("local-map"); }, // MPT地形 MPTterrain() { this.openAddLayerPopup("sgsterrain"); }, // Arcgis地形 ArcGISTerrain() { this.openAddLayerPopup("arcgisterrain"); }, // terrain格式地形 terrain() { this.openAddLayerPopup("terrain"); }, // 3dtiles模型 threeDTiles() { this.openAddLayerPopup("b3dm"); }, // s3m模型 s3m() { this.openAddLayerPopup("s3m"); }, // gltf模型 GLTF() { this.openAddLayerPopup("gltf"); }, // kml数据 KML() { this.openAddLayerPopup("kml"); }, // wfs WFS() { this.openAddLayerPopup("wfs"); }, // geojson geojson() { this.openAddLayerPopup("geojson"); }, // 矢量切片 featureT() { this.openAddLayerPopup("vector"); }, pathLayer(){ this.openAddLayerPopup("pathLayer"); }, // 管线 importPolylineVolume(){ this.$refs.importPolylineVolume && this.$refs.importPolylineVolume.open(); } }, };