| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-11-12 18:15:54 |
| | | * @LastEditTime: 2024-11-14 18:32:01 |
| | | * @FilePath: \bigScreen\src\pages\layout\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | size: 1000 |
| | | }, |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/qy.png', |
| | | className: 'qyfb-box', |
| | | showPanel: false, |
| | | layerName: 'qyfb' |
| | | }, |
| | |
| | | size: 1000 |
| | | }, |
| | | showParams: 'category', |
| | | className: 'fxy-box', |
| | | backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png', |
| | | showPanel: false, |
| | | layerName: 'fxy' |
| | |
| | | |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(i.lng, i.lat, 0), |
| | | `<div class="public-map-popup"> |
| | | `<div class="public-map-popup ${item.className || ''}"> |
| | | ${iconEl} |
| | | </div>` |
| | | ) |
| | |
| | | addTileLayers[item.layerName] = new DC.VectorLayer(item.layerName) |
| | | window.$viewer.addLayer(addTileLayers[item.layerName]) |
| | | |
| | | function computeCircle(radius) { |
| | | function computeCircle (radius) { |
| | | var positions = [] |
| | | for (var i = 0; i < 1080; i++) { |
| | | for (var i = 0; i < 360; i++) { |
| | | var radians = DC.Math.toRadians(i) |
| | | positions.push({ |
| | | x: radius * Math.cos(radians), |
| | |
| | | }) |
| | | } |
| | | |
| | | function findObjectById(data, id) { |
| | | function findObjectById (data, id) { |
| | | // 遍历数据数组 |
| | | for (let i = 0; i < data.length; i++) { |
| | | const item = data[i] |