加载倾斜影像模型数据位置更改;
加载影像底图数据位置更改;
3 files modified
2 files added
| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-09-07 09:34:58 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2023-05-06 20:29:19 |
| | | * @LastEditTime: 2024-07-18 17:07:52 |
| | | * @FilePath: \srs-police-affairs\public\index.html |
| | | * @Description: |
| | | * |
| | |
| | | </title> |
| | | |
| | | <script src="./static/config.js"></script> |
| | | <script src="./static/tileset.js"></script> |
| | | <script src="./static/yxLayer.js"></script> |
| | | |
| | | <script src="./depend/vue.min.js"></script> |
| | | |
| New file |
| | |
| | | function* generateNumbersGenerator(start, end) { |
| | | for (let i = start; i <= end; i++) { |
| | | yield i.toString().padStart(2, "0"); |
| | | } |
| | | } |
| | | |
| | | window.TILESET_LABEL = Array.from(generateNumbersGenerator(1, 1000)); |
| New file |
| | |
| | | window.YX_LAYER_CONFIG = [ |
| | | { |
| | | name: "A1", |
| | | west: "0", |
| | | south: "0", |
| | | east: "0", |
| | | north: "0", |
| | | }, |
| | | { |
| | | name: "A2", |
| | | west: "117.963930012653", |
| | | south: "28.586168220745", |
| | | east: "118.012258057971", |
| | | north: "28.6426775570836", |
| | | }, |
| | | { |
| | | name: "A3", |
| | | west: "118.012258057971", |
| | | south: "28.586168220745", |
| | | east: "118.06058610329", |
| | | north: "28.6426775570836", |
| | | }, |
| | | { |
| | | name: "A4", |
| | | west: "118.06058610329", |
| | | south: "28.586168220745", |
| | | east: "118.108914148609", |
| | | north: "28.6426775570836", |
| | | }, |
| | | { |
| | | name: "A5", |
| | | west: "118.108914148609", |
| | | south: "28.586168220745", |
| | | east: "118.157242193927", |
| | | north: "28.6426775570836", |
| | | }, |
| | | { |
| | | name: "B1", |
| | | west: "117.915601967334", |
| | | south: "28.5296588844063", |
| | | east: "117.963930012653", |
| | | north: "28.586168220745", |
| | | }, |
| | | { |
| | | name: "B2", |
| | | west: "117.963930012653", |
| | | south: "28.5296588844063", |
| | | east: "118.012258057971", |
| | | north: "28.586168220745", |
| | | }, |
| | | { |
| | | name: "B3", |
| | | west: "118.012258057971", |
| | | south: "28.5296588844063", |
| | | east: "118.06058610329", |
| | | north: "28.586168220745", |
| | | }, |
| | | { |
| | | name: "B4", |
| | | west: "118.06058610329", |
| | | south: "28.5296588844063", |
| | | east: "118.108914148609", |
| | | north: "28.586168220745", |
| | | }, |
| | | { |
| | | name: "B5", |
| | | west: "118.108914148609", |
| | | south: "28.5296588844063", |
| | | east: "118.157242193927", |
| | | north: "28.586168220745", |
| | | }, |
| | | { |
| | | name: "C1", |
| | | west: "117.915601967334", |
| | | south: "28.4731495480677", |
| | | east: "117.963930012653", |
| | | north: "28.5296588844063", |
| | | }, |
| | | { |
| | | name: "C2", |
| | | west: "117.963930012653", |
| | | south: "28.4731495480677", |
| | | east: "118.012258057971", |
| | | north: "28.5296588844063", |
| | | }, |
| | | { |
| | | name: "C3", |
| | | west: "118.012258057971", |
| | | south: "28.4731495480677", |
| | | east: "118.06058610329", |
| | | north: "28.5296588844063", |
| | | }, |
| | | { |
| | | name: "C4", |
| | | west: "118.06058610329", |
| | | south: "28.4731495480677", |
| | | east: "118.108914148609", |
| | | north: "28.5296588844063", |
| | | }, |
| | | { |
| | | name: "C5", |
| | | west: "118.108914148609", |
| | | south: "28.4731495480677", |
| | | east: "118.157242193927", |
| | | north: "28.5296588844063", |
| | | }, |
| | | { |
| | | name: "D1", |
| | | west: "117.915601967334", |
| | | south: "28.416640211729", |
| | | east: "117.963930012653", |
| | | north: "28.4731495480677", |
| | | }, |
| | | { |
| | | name: "D2", |
| | | west: "117.963930012653", |
| | | south: "28.416640211729", |
| | | east: "118.012258057971", |
| | | north: "28.4731495480677", |
| | | }, |
| | | { |
| | | name: "D3", |
| | | west: "118.012258057971", |
| | | south: "28.416640211729", |
| | | east: "118.06058610329", |
| | | north: "28.4731495480677", |
| | | }, |
| | | { |
| | | name: "D4", |
| | | west: "118.06058610329", |
| | | south: "28.416640211729", |
| | | east: "118.108914148609", |
| | | north: "28.4731495480677", |
| | | }, |
| | | { |
| | | name: "D5", |
| | | west: "118.108914148609", |
| | | south: "28.416640211729", |
| | | east: "118.157242193927", |
| | | north: "28.4731495480677", |
| | | }, |
| | | { |
| | | name: "E1", |
| | | west: "117.915601967334", |
| | | south: "28.3601308753904", |
| | | east: "117.963930012653", |
| | | north: "28.416640211729", |
| | | }, |
| | | { |
| | | name: "E2", |
| | | west: "117.963930012653", |
| | | south: "28.3601308753904", |
| | | east: "118.012258057971", |
| | | north: "28.416640211729", |
| | | }, |
| | | { |
| | | name: "E3", |
| | | west: "118.012258057971", |
| | | south: "28.3601308753904", |
| | | east: "118.06058610329", |
| | | north: "28.416640211729", |
| | | }, |
| | | { |
| | | name: "E4", |
| | | west: "0", |
| | | south: "0", |
| | | east: "0", |
| | | north: "0", |
| | | }, |
| | | { |
| | | name: "E5", |
| | | west: "0", |
| | | south: "0", |
| | | east: "0", |
| | | north: "0", |
| | | }, |
| | | ]; |
| | |
| | | <!-- |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2022-08-18 17:00:30 |
| | | * @Date: 2024-06-21 16:37:19 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-05-09 16:57:19 |
| | | * @LastEditTime: 2024-07-18 17:06:02 |
| | | * @FilePath: \srs-police-affairs\src\components\map\index.vue |
| | | * @Description: 公用地图组件 |
| | | * @Description: |
| | | * |
| | | * Copyright (c) 2022 by shuishen 1109946754@qq.com, All Rights Reserved. |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | --> |
| | | <template> |
| | | <div class="viewer-box" id="viewer-container" @click="showImgBtn = false"> |
| | |
| | | tile3DUrl = window.BASE_URL_CONFIG.VUE_APP_INTRANET_TILEURL |
| | | } |
| | | |
| | | import { label } from "./label" |
| | | |
| | | let projectTerrain = null |
| | | |
| | | var siteEntitylayers = null |
| | |
| | | import createTools from '@/utils/tools/index' |
| | | import { mapGetters } from 'vuex' |
| | | import { getLineSpeed } from '@/utils/turfPolygon' |
| | | |
| | | import yxLayerJson from './yxlayer' |
| | | |
| | | export default { |
| | | name: 'mapBox', |
| | |
| | | }, |
| | | |
| | | closeMxTileset () { |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | this.removeMxTileset(`sdTilesetLayer${item}`) |
| | | }) |
| | | |
| | |
| | | type: 'remove' |
| | | }) |
| | | |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | this.removeMxTileset(`sdTilesetLayer${item}`) |
| | | }) |
| | | |
| | |
| | | this.tilesetLayerType = type |
| | | |
| | | type == 'light' ? |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | this.addMxTileset(`sdTilesetLayer${item}`, `${tile3DUrl}/sf3d/361102/model/all/${item}/tileset.json`) |
| | | }) : |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | this.addMxTileset(`sdTilesetLayer${item}`, `${tile3DUrl}/sf3d/361102/model/all1/${item}/tileset.json`) |
| | | }) |
| | | |
| | |
| | | |
| | | baseLayers.push(qp) |
| | | |
| | | yxLayerJson.forEach(item => { |
| | | window.YX_LAYER_CONFIG.forEach(item => { |
| | | let rectangle = {} |
| | | |
| | | if (item.west != 0 && item.south != 0 && item.east != 0 && item.north != 0) { |
| | |
| | | |
| | | registerMxClick (event) { |
| | | this.unbindMxClick() |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | if (tilesetObject[`sdTilesetLayer${item}`] && tilesetObject[`sdTilesetLayer${item}`] != null) { |
| | | tilesetObject[`sdTilesetLayer${item}`].on(global.DC.MouseEventType.CLICK, event) |
| | | } |
| | |
| | | }, |
| | | |
| | | unbindMxClick (event) { |
| | | label.forEach(item => { |
| | | window.TILESET_LABEL.forEach(item => { |
| | | if (tilesetObject[`sdTilesetLayer${item}`] && tilesetObject[`sdTilesetLayer${item}`] != null) { |
| | | tilesetObject[`sdTilesetLayer${item}`].off(global.DC.MouseEventType.CLICK, event) |
| | | } |
| | |
| | | export const label = [ |
| | | '01', |
| | | '02', |
| | | '03', |
| | | '04', |
| | | '05', |
| | | '06', |
| | | '07', |
| | | '08', |
| | | '09', |
| | | '10', |
| | | '11', |
| | | '12', |
| | | '13', |
| | | '14', |
| | | '15', |
| | | '16', |
| | | '17', |
| | | '18', |
| | | '19', |
| | | '20', |
| | | '21', |
| | | '22', |
| | | '23', |
| | | '24', |
| | | '25', |
| | | '26', |
| | | '27', |
| | | '28', |
| | | '29', |
| | | '30', |
| | | '31', |
| | | '32', |
| | | '33', |
| | | '34', |
| | | '35', |
| | | '36', |
| | | '37', |
| | | '38', |
| | | '39', |
| | | '40', |
| | | '41', |
| | | '42', |
| | | '43', |
| | | '44', |
| | | '45', |
| | | '46', |
| | | '47', |
| | | '48', |
| | | '49', |
| | | '50', |
| | | '51', |
| | | '52', |
| | | '53', |
| | | '54', |
| | | '55', |
| | | '56', |
| | | '57', |
| | | '58', |
| | | '59', |
| | | '60', |
| | | '61', |
| | | '62', |
| | | '63', |
| | | '64', |
| | | '65', |
| | | '66', |
| | | '67', |
| | | '68', |
| | | '69', |
| | | '70', |
| | | '71', |
| | | '72', |
| | | '73', |
| | | '74', |
| | | '75', |
| | | '76', |
| | | '77', |
| | | '78', |
| | | '79', |
| | | '80', |
| | | '81', |
| | | '82', |
| | | '83', |
| | | '84', |
| | | '85', |
| | | '86', |
| | | '87', |
| | | '88', |
| | | '89', |
| | | '90', |
| | | '91', |
| | | '92', |
| | | '93', |
| | | '94', |
| | | '95', |
| | | '96', |
| | | '97', |
| | | '98', |
| | | '99', |
| | | '100' |
| | | ] |
| | | function* generateNumbersGenerator(start, end) { |
| | | for (let i = start; i <= end; i++) { |
| | | yield i.toString().padStart(2, "0"); |
| | | } |
| | | } |
| | | |
| | | export const label = Array.from(generateNumbersGenerator(1, 1000)); |