| | |
| | | * @Author: shuishen 1109946754@qq.com |
| | | * @Date: 2024-10-31 10:47:29 |
| | | * @LastEditors: shuishen 1109946754@qq.com |
| | | * @LastEditTime: 2024-12-01 21:45:13 |
| | | * @LastEditTime: 2024-12-02 19:46:13 |
| | | * @FilePath: \bigScreen\src\pages\map\components\scomponents\layersControl.vue |
| | | * @Description: |
| | | * |
| | |
| | | type: 'layer', |
| | | subType: '3Dtile', |
| | | urlData: [ |
| | | |
| | | { |
| | | url: VITE_APP_BASE + 'newMx/mx/tile_01/tileset.json', |
| | | label: 'tile_01' |
| | | }, |
| | | { |
| | | url: VITE_APP_BASE + 'newMx/mx/tile_02/tileset.json', |
| | | label: 'tile_02' |
| | | }, |
| | | { |
| | | url: VITE_APP_BASE + 'newMx/mx/tile_03/tileset.json', |
| | | label: 'tile_03' |
| | | }, |
| | | { |
| | | url: VITE_APP_BASE + 'newMx/mx/tile_04/tileset.json', |
| | | label: 'tile_04' |
| | | }, |
| | | { |
| | | url: VITE_APP_BASE + 'newMx/mx/tile_05/tileset.json', |
| | | label: 'tile_05' |
| | | }, |
| | | ], |
| | | layerName: 'hgyq' |
| | | }, |
| | |
| | | <img src="${attrParams.imageUrl}" /> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-two"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | <img src="${attrParams.imageUrl}" width="160" height="160" /> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-two"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | <img src="${attrParams.imageUrl}" width="160" height="160" /> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-two"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | <img src="${attrParams.imageUrl}" width="160" height="160" /> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-two"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | <img src="${attrParams.imageUrl}" width="160" height="160" /> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-two"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | addPupoLayers[attrParams.name] = new DC.HtmlLayer(attrParams.name) |
| | | window.$viewer.addLayer(addPupoLayers[attrParams.name]) |
| | | let iconEl = `<div class="marsBlueGradientPnl"> |
| | | <li>${attrParams.firmName || ''}</li> |
| | | <li>${attrParams.riskLevelName || ''}</li> |
| | | <li>${attrParams.name || ''}</li> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-three"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | destroy() |
| | | addPupoLayers[attrParams.name] = new DC.HtmlLayer(attrParams.name) |
| | | window.$viewer.addLayer(addPupoLayers[attrParams.name]) |
| | | let iconEl = `<div class="marsBlueGradientPnl"> |
| | | <li>${attrParams.firmName || ''}</li> |
| | | <li>${attrParams.riskLevelName || ''}</li> |
| | | let iconEl = `<div class="marsBlueGradientPnl"> |
| | | <li>${attrParams.name || ''}</li> |
| | | </div>` |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(attrParams.lng, attrParams.lat, 64), |
| | | new DC.Position(attrParams.lng, attrParams.lat, attrParams.ele || 64), |
| | | `<div class="public-map-popup-three"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | } |
| | | |
| | | let divIcon = new DC.DivIcon( |
| | | new DC.Position(i.lng, i.lat, 64), |
| | | new DC.Position(i.lng, i.lat, i.ele || 64), |
| | | `<div class="public-map-popup ${item.className || ''}"> |
| | | ${iconEl} |
| | | </div>` |
| | |
| | | |
| | | onMounted(() => { |
| | | setTimeout(() => { |
| | | handleCheckChange(data.filter(i => indexPoint.value.includes(i.id))) |
| | | // handleCheckChange(data.filter(i => indexPoint.value.includes(i.id))) |
| | | }, 3000) |
| | | }) |
| | | |
| | |
| | | } |
| | | |
| | | let arr = Object.keys(addTileLayers) |
| | | arr.filter(i => i != 'hgyq').forEach(i => { |
| | | addTileLayers[i] && window.$viewer && window.$viewer.removeLayer(addTileLayers[i]) |
| | | addTileLayers[i] = null |
| | | delete addTileLayers[i] |
| | | arr.forEach(i => { |
| | | if (i == 'hgyq') { |
| | | addTileLayers[i] = null |
| | | delete addTileLayers[i] |
| | | } else { |
| | | addTileLayers[i] && window.$viewer && window.$viewer.removeLayer(addTileLayers[i]) |
| | | addTileLayers[i] = null |
| | | delete addTileLayers[i] |
| | | } |
| | | }) |
| | | addTileLayers = null |
| | | // 弹窗销毁 |