| | |
| | | window.drawAPointLayerMany = null; //活动点 |
| | | window.drawAPointLayerManyposition = null; //活动点位置 |
| | | window.drawAPointLayerManyLabels = null; //活动点 |
| | | window.tilesetLayer = null; |
| | | window.wallLayer = null; |
| | | // window.tilesetLayer = null; |
| | | // window.wallLayer = null; |
| | | window.areaLayer = null; |
| | | window.tileset = null; |
| | | window.drawALineLayer = null; // 导航路径图层 |
| | |
| | | color: undefined |
| | | }; |
| | | |
| | | window.newLayer = null; |
| | | window.usetowpointfive = null; |
| | | window.tancuanPosition = null; |
| | | |
| | | // window.newLayer = null; |
| | | // window.usetowpointfive = null; |
| | | |
| | | window.startPointFn = null; |
| | | const mobile = { |
| | |
| | | roll: 0 |
| | | } |
| | | // 加载底图 |
| | | window.vecLayer = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/vec_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'vec', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | }) |
| | | ) |
| | | window.cvaLayer = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/cva_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'cva', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | }) |
| | | ) |
| | | if (!window.vecLayer) { |
| | | window.vecLayer = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/vec_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'vec', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | }) |
| | | ) |
| | | window.cvaLayer = global.viewer.imageryLayers.addImageryProvider( |
| | | new global.DC.Namespace.Cesium.WebMapTileServiceImageryProvider({ |
| | | url: ' http://t1.tianditu.gov.cn/cva_w/wmts?tk=9ae78c51a0a28f06444d541148496e36', |
| | | type: 'wmts', |
| | | layer: 'cva', |
| | | style: 'default', |
| | | format: 'tiles', |
| | | tileMatrixSetID: 'w', |
| | | show: true, |
| | | maximumLevel: 18 |
| | | }) |
| | | ) |
| | | } |
| | | // console.log(1321) |
| | | window.wallLayer.show = false // 关闭瀑布 以及2.5d图形贴片 |
| | | global.viewer.imageryLayers.remove(window.newLayer) |
| | |
| | | window.startPointFn() // 移动默认视角 |
| | | // global.viewer.flyTo(window.tileset); |
| | | window.areaLayer.show = false // 绿布 |
| | | |
| | | // 3D视角不限制 |
| | | global.viewer.scene.screenSpaceCameraController.minimumZoomDistance = 80 |
| | | // 最大 |
| | |
| | | state.perspectiveControl = data |
| | | state.perspectiveControls = !state.perspectiveControls |
| | | }, |
| | | MSET_MODEOLS(state, data) { |
| | | window.tilesetLayer = data.tilesetLayer |
| | | window.newLayer = data.newLayer |
| | | window.wallLayer = data.wallLayer |
| | | window.tileset = data.tileset |
| | | window.usetowpointfive = data.usetowpointfive |
| | | }, |
| | | // MSET_MODEOLS(state, data) { |
| | | // window.tilesetLayer = data.tilesetLayer |
| | | // window.newLayer = data.newLayer |
| | | // window.wallLayer = data.wallLayer |
| | | // window.tileset = data.tileset |
| | | // window.usetowpointfive = data.usetowpointfive |
| | | // }, |
| | | // 直接移动 |
| | | cameraSetView(state, data) { |
| | | global.viewer.camera.setView({ |
| | |
| | | }, |
| | | // 显影线路或者点 |
| | | showLineOrPoint(state, val) { |
| | | state[val.layer].show = val.flag |
| | | window[val.layer].show = val.flag |
| | | }, |
| | | // 传送终点数据 |
| | | set_endPosition(state, data) { |
| | |
| | | data.from == 'PopupOurOnce' ? 0 : 0 |
| | | ] |
| | | } |
| | | |
| | | window.tancuanPosition = data.position; |
| | | if (data.useJWD) { |
| | | window.ellipsoid = global.viewer.scene.globe.ellipsoid |
| | | window.cartographic = global.DC.Namespace.Cesium.Cartographic.fromDegrees( |
| | |
| | | // clnt, clat, calt |
| | | ...clas |
| | | ) |
| | | data.position = window.ellipsoid.cartographicToCartesian(window.cartographic) |
| | | window.tancuanPosition = window.ellipsoid.cartographicToCartesian(window.cartographic) |
| | | } |
| | | |
| | | // 定制化窗体 |
| | |
| | | title: data.query.name || '成教楼 ', |
| | | className: 'mobilePopup', |
| | | content: document.getElementById('mobile-map_content_content'), |
| | | position: [data.position] |
| | | position: [window.tancuanPosition] |
| | | }) |
| | | // commit("MSET_MOBILEWINDOWSHIDE", false)//显示弹窗 |
| | | // dispatch("CHANGETOC3", { // 转换坐标 |