diff --git a/src/views/CesiumCom/swqj3Dmap.vue b/src/views/CesiumCom/swqj3Dmap.vue index caabf34..1cd6d57 100644 --- a/src/views/CesiumCom/swqj3Dmap.vue +++ b/src/views/CesiumCom/swqj3Dmap.vue @@ -425,20 +425,20 @@ mounted: function() { //加载天地图 - let imgTDT = new Cesium.WebMapTileServiceImageryProvider({ - url: "http://t0.tianditu.com/img_w/wmts?service=wmts&tk=5095c97223409ac114493d71ecb9cd87&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles", - layer: "img", - style: "default", - format: "tiles", - tileMatrixSetID: "w", - credit: new Cesium.Credit("天地图全球影像服务"), - subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"], - maximumLevel: 18, - show: false, - }); + // let imgTDT = new Cesium.WebMapTileServiceImageryProvider({ + // url: "http://t0.tianditu.com/img_w/wmts?service=wmts&tk=5095c97223409ac114493d71ecb9cd87&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles", + // layer: "img", + // style: "default", + // format: "tiles", + // tileMatrixSetID: "w", + // credit: new Cesium.Credit("天地图全球影像服务"), + // subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"], + // maximumLevel: 18, + // show: false, + // }); //初始化viewer部件 var viewer = new Cesium.Viewer('cesiumContainer', { - imageryProvider: imgTDT, + // imageryProvider: imgTDT, navigation: false, animation: false, // 隐藏动画控件 @@ -491,13 +491,13 @@ //高德影像 - // window.provider_imgLayer = new Cesium.TileMapServiceImageryProvider({ - // //url: '/imgUrl/xinyangimg', - // //url:'http://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', - // url:"https://192.168.100.18:10001/webstUrl/appmaptile?style=6&x={x}&y={y}&z={z}", - // fileExtension: 'png', - // }) - // window.imglayer = window.earth.imageryLayers.addImageryProvider(window.provider_imgLayer) + window.provider_imgLayer = new Cesium.TileMapServiceImageryProvider({ + //url: '/imgUrl/xinyangimg', + url:'http://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', + //url:"https://192.168.100.18:10001/webstUrl/appmaptile?style=6&x={x}&y={y}&z={z}", + fileExtension: 'png', + }) + window.imglayer = window.earth.imageryLayers.addImageryProvider(window.provider_imgLayer) // video控件是原生获取的dom @@ -2031,6 +2031,11 @@ ) // var promise= window.earth.scene.addS3MTilesLayerByScp( +// 'http://localhost:8090/iserver/services/3D-local3DCache-Config/rest/realspace/datas/Combine/config', //地址写到config那一级 +// { name: 'Combine' } +// ) + +// var promise= window.earth.scene.addS3MTilesLayerByScp( // '/supermap3Dapi/iserver/services/3D-local3DCache-osgbxy1/rest/realspace/datas/Combine/config', //地址写到config那一级 // //'http://192.168.100.6:8090/iserver/services/3D-local3DCache-osgbxy1/rest/realspace/datas/Combine/config', //地址写到config那一级 // { name: 'Combine' } @@ -2678,8 +2683,8 @@ orientation: new Cesium.VelocityOrientationProperty(position), model: { - uri: "/gltfUrl/car01.gltf", - // uri: "/gltfUrl/gltf/car01.gltf", + //uri: "/gltfUrl/car01.gltf", + uri: "/gltfUrl/gltf/car01.gltf", //uri: "/gltfUrl/00256_Daud008.fbx.glb", scale: 0.05 diff --git a/src/views/CesiumCom/swqj3Dmap.vue b/src/views/CesiumCom/swqj3Dmap.vue index caabf34..1cd6d57 100644 --- a/src/views/CesiumCom/swqj3Dmap.vue +++ b/src/views/CesiumCom/swqj3Dmap.vue @@ -425,20 +425,20 @@ mounted: function() { //加载天地图 - let imgTDT = new Cesium.WebMapTileServiceImageryProvider({ - url: "http://t0.tianditu.com/img_w/wmts?service=wmts&tk=5095c97223409ac114493d71ecb9cd87&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles", - layer: "img", - style: "default", - format: "tiles", - tileMatrixSetID: "w", - credit: new Cesium.Credit("天地图全球影像服务"), - subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"], - maximumLevel: 18, - show: false, - }); + // let imgTDT = new Cesium.WebMapTileServiceImageryProvider({ + // url: "http://t0.tianditu.com/img_w/wmts?service=wmts&tk=5095c97223409ac114493d71ecb9cd87&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles", + // layer: "img", + // style: "default", + // format: "tiles", + // tileMatrixSetID: "w", + // credit: new Cesium.Credit("天地图全球影像服务"), + // subdomains: ["t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7"], + // maximumLevel: 18, + // show: false, + // }); //初始化viewer部件 var viewer = new Cesium.Viewer('cesiumContainer', { - imageryProvider: imgTDT, + // imageryProvider: imgTDT, navigation: false, animation: false, // 隐藏动画控件 @@ -491,13 +491,13 @@ //高德影像 - // window.provider_imgLayer = new Cesium.TileMapServiceImageryProvider({ - // //url: '/imgUrl/xinyangimg', - // //url:'http://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', - // url:"https://192.168.100.18:10001/webstUrl/appmaptile?style=6&x={x}&y={y}&z={z}", - // fileExtension: 'png', - // }) - // window.imglayer = window.earth.imageryLayers.addImageryProvider(window.provider_imgLayer) + window.provider_imgLayer = new Cesium.TileMapServiceImageryProvider({ + //url: '/imgUrl/xinyangimg', + url:'http://webst02.is.autonavi.com/appmaptile?style=6&x={x}&y={y}&z={z}', + //url:"https://192.168.100.18:10001/webstUrl/appmaptile?style=6&x={x}&y={y}&z={z}", + fileExtension: 'png', + }) + window.imglayer = window.earth.imageryLayers.addImageryProvider(window.provider_imgLayer) // video控件是原生获取的dom @@ -2031,6 +2031,11 @@ ) // var promise= window.earth.scene.addS3MTilesLayerByScp( +// 'http://localhost:8090/iserver/services/3D-local3DCache-Config/rest/realspace/datas/Combine/config', //地址写到config那一级 +// { name: 'Combine' } +// ) + +// var promise= window.earth.scene.addS3MTilesLayerByScp( // '/supermap3Dapi/iserver/services/3D-local3DCache-osgbxy1/rest/realspace/datas/Combine/config', //地址写到config那一级 // //'http://192.168.100.6:8090/iserver/services/3D-local3DCache-osgbxy1/rest/realspace/datas/Combine/config', //地址写到config那一级 // { name: 'Combine' } @@ -2678,8 +2683,8 @@ orientation: new Cesium.VelocityOrientationProperty(position), model: { - uri: "/gltfUrl/car01.gltf", - // uri: "/gltfUrl/gltf/car01.gltf", + //uri: "/gltfUrl/car01.gltf", + uri: "/gltfUrl/gltf/car01.gltf", //uri: "/gltfUrl/00256_Daud008.fbx.glb", scale: 0.05 diff --git a/vue.config.js b/vue.config.js index 0616115..7029755 100644 --- a/vue.config.js +++ b/vue.config.js @@ -42,8 +42,8 @@ }, '/gltfUrl': { // 历史数据 - target: 'http://192.168.101.84:6081', - // target: 'http://192.168.31.15:6081', + // target: 'http://192.168.101.84:6081', + target: 'http://192.168.31.15:6081', //target: 'http://192.168.100.18:10001', // 接口域名 changeOrigin: true, //是否跨域 pathRewrite: {