|
@@ -94,7 +94,7 @@ export default {
|
|
|
children: [
|
|
children: [
|
|
|
{ id: '3-1', label: '兴平市宜空采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/宜空采砂区.geojson' } },
|
|
{ id: '3-1', label: '兴平市宜空采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/宜空采砂区.geojson' } },
|
|
|
{ id: '3-2', label: '兴平市团结采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/团结采砂区.geojson' } },
|
|
{ id: '3-2', label: '兴平市团结采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/团结采砂区.geojson' } },
|
|
|
- { id: '3-3', label: '兴平市汤坊龙兴1区采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/坊龙兴1区采砂区.geojson' } }
|
|
|
|
|
|
|
+ { id: '3-3', label: '兴平市汤坊龙兴1区采砂区', type: 'csq', meta: { type: 'polygon', url: '/sddnWeihe/geojson/汤坊龙兴1区采砂区.geojson' } }
|
|
|
]
|
|
]
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -429,16 +429,16 @@ export default {
|
|
|
{ template: false, offsetY: 0 }
|
|
{ template: false, offsetY: 0 }
|
|
|
)
|
|
)
|
|
|
} else if (['3-1', '3-2', '3-3'].includes(layer.id)) {
|
|
} else if (['3-1', '3-2', '3-3'].includes(layer.id)) {
|
|
|
- const coorList = {
|
|
|
|
|
- 兴平市宜空采砂区: [108.352091, 34.202407, 100],
|
|
|
|
|
- 兴平市团结采砂区: [108.360076, 34.20512, 100],
|
|
|
|
|
- 兴平市汤坊龙兴1区采砂区: [108.474301, 34.21255, 100]
|
|
|
|
|
|
|
+ const coorList = {
|
|
|
|
|
+ 兴平市宜空采砂区: [108.461726, 34.213397, 100],
|
|
|
|
|
+ 兴平市团结采砂区: [108.53167, 34.23404, 100],
|
|
|
|
|
+ 兴平市汤坊龙兴1区采砂区: [108.360459, 34.203945, 100]
|
|
|
|
|
+ }
|
|
|
|
|
+ const position = coorList[layer.options.name]
|
|
|
|
|
+ layer.on(this.mars3d.EventType.click, function (event) {
|
|
|
|
|
+ _that.$globalEventBus.$emit('clickCsqModal', { title: layer.options.name, position: position })
|
|
|
|
|
+ })
|
|
|
}
|
|
}
|
|
|
- const position = coorList[layer.options.name]
|
|
|
|
|
- layer.on(this.mars3d.EventType.click, function (event) {
|
|
|
|
|
- _that.$globalEventBus.$emit('clickCsqModal', { title: layer.options.name, position: position })
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
},
|
|
},
|
|
|
getMonitorData() {
|
|
getMonitorData() {
|
|
|
graphicsLayer = new this.mars3d.layer.GraphicLayer()
|
|
graphicsLayer = new this.mars3d.layer.GraphicLayer()
|
|
@@ -500,12 +500,12 @@ export default {
|
|
|
fetchUrl(item) {
|
|
fetchUrl(item) {
|
|
|
return new Promise((resolve, reject) => {
|
|
return new Promise((resolve, reject) => {
|
|
|
getVideoRealtimeUrl({
|
|
getVideoRealtimeUrl({
|
|
|
- deviceCode: item.deviceCode,
|
|
|
|
|
- channelCode: item.channelCode,
|
|
|
|
|
- netType: 2,
|
|
|
|
|
- protocolType:9,
|
|
|
|
|
- streamType: 1
|
|
|
|
|
- }).then(async(res)=>{
|
|
|
|
|
|
|
+ deviceCode: item.deviceCode,
|
|
|
|
|
+ channelCode: item.channelCode,
|
|
|
|
|
+ netType: 2,
|
|
|
|
|
+ protocolType: 9,
|
|
|
|
|
+ streamType: 1
|
|
|
|
|
+ }).then(async (res) => {
|
|
|
resolve(res)
|
|
resolve(res)
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|