Compare commits
No commits in common. "43cf540d8f1fc5390d86159da463c4d80094e03c" and "9d89e411306bc8c41a9173cb2611530d7d773365" have entirely different histories.
43cf540d8f
...
9d89e41130
|
|
@ -25,12 +25,12 @@ export default class ViewLeftComponent extends Vue {
|
|||
treeData = treeData;
|
||||
viewList = [
|
||||
{
|
||||
id: '1',
|
||||
id: Mock.mock("@id"),
|
||||
title: '北大门东区→南大门西区',
|
||||
from: '北大门东区',
|
||||
to: '南大门西区'
|
||||
}, {
|
||||
id: '2',
|
||||
id: Mock.mock("@id"),
|
||||
title: '南大门东区→北大门西区',
|
||||
from: '南大门东区',
|
||||
to: '北大门西区'
|
||||
|
|
|
|||
1752
src/mock/path.ts
1752
src/mock/path.ts
File diff suppressed because it is too large
Load Diff
|
|
@ -1,27 +1,23 @@
|
|||
export default [[
|
||||
11661118.72,
|
||||
3692382.4,
|
||||
0
|
||||
13312554.24,
|
||||
4098441.2800000003,
|
||||
0.4
|
||||
],[
|
||||
11661186.56,
|
||||
3692696.64,
|
||||
0
|
||||
13313066.24,
|
||||
4098892.48,
|
||||
0.476328125
|
||||
],[
|
||||
11660930.56,
|
||||
3692642.88,
|
||||
3.583046875
|
||||
13313446.4,
|
||||
4098451.52,
|
||||
0.4000390625
|
||||
],[
|
||||
11660729.6,
|
||||
3692633.2800000003,
|
||||
3.5830078125
|
||||
13312994.56,
|
||||
4098064.96,
|
||||
0.3999609375
|
||||
],[
|
||||
11660718.08,
|
||||
3692349.12,
|
||||
0
|
||||
],[
|
||||
11660874.24,
|
||||
3692352.3200000003,
|
||||
-0.0000390625
|
||||
13312628.48,
|
||||
4098448.3200000003,
|
||||
0.39998046875
|
||||
]
|
||||
|
||||
]
|
||||
|
|
@ -10,7 +10,6 @@ import boundsData from "@/mock/bounds"
|
|||
import ParkFileService from '@/service/park.service';
|
||||
import CloseService from '@/service/close.service';
|
||||
import * as turf from "@turf/turf"
|
||||
import path from '@/mock/path';
|
||||
|
||||
@Component({
|
||||
template,
|
||||
|
|
@ -26,7 +25,6 @@ export default class BaseComponent extends Vue {
|
|||
public layerData = layerData;
|
||||
|
||||
public lock = true;
|
||||
public tourPathData = path;
|
||||
|
||||
public timerList = {} as any;
|
||||
public pakFilePath = "@path:DTS_Library_V5.4.pak";
|
||||
|
|
@ -61,7 +59,7 @@ export default class BaseComponent extends Vue {
|
|||
// 添加电子围栏 // 安全线 // 实控线 // 规划线
|
||||
public async toggleArea(layer){
|
||||
if(!layer.ids.length){
|
||||
const result = layer.data.map(item=>{
|
||||
const result = this.dataList[layer.value].map(item=>{
|
||||
return {
|
||||
id:item.id,
|
||||
groupId:layer.value,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="overview-container">
|
||||
|
||||
<MapComponent id="map" @onLoaded="getMap" @onHandleChange="handleChange"></MapComponent>
|
||||
<!-- <MapComponent id="map" @onLoaded="getMap" @onHandleChange="handleChange"></MapComponent>-->
|
||||
|
||||
<div class="bg-box left animate__animated">
|
||||
<div class="panel-container">
|
||||
|
|
|
|||
|
|
@ -57,8 +57,6 @@ export default class OverViewComponent extends BaseComponent {
|
|||
this.player = store;
|
||||
this.lock = false
|
||||
this.resetMap();
|
||||
this.player.api.cameraTour.delete("1");
|
||||
this.player.api.cameraTour.delete("2");
|
||||
this.player.api.customObject.clear();
|
||||
this.player.api.polygon3d.clear();
|
||||
this.player.api.marker.clear();
|
||||
|
|
@ -67,7 +65,6 @@ export default class OverViewComponent extends BaseComponent {
|
|||
this.player.api.polyline.clear();
|
||||
this.player.api.heatmap.clear();
|
||||
this.currentLayers = this.getCurrentLayers();
|
||||
this.player.api.cameraTour.add(this.tourPathData)
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -121,7 +118,7 @@ export default class OverViewComponent extends BaseComponent {
|
|||
this.hideAllPanel = !this.hideAllPanel;
|
||||
this.drawerChange(!this.hideAllPanel)
|
||||
if(!this.hideAllPanel){
|
||||
this.player.api.cameraTour.stop();
|
||||
|
||||
this.player.api.settings.setInteractiveMode(0)
|
||||
}
|
||||
}
|
||||
|
|
@ -138,8 +135,6 @@ export default class OverViewComponent extends BaseComponent {
|
|||
layer.selected = !layer.selected;
|
||||
if(layer.type === "moveMarker"){
|
||||
this.addMarker(layer,true)
|
||||
}else{
|
||||
this.toggleArea(layer)
|
||||
}
|
||||
}
|
||||
//进入自由导览
|
||||
|
|
@ -210,7 +205,7 @@ export default class OverViewComponent extends BaseComponent {
|
|||
//进入路线导览
|
||||
playView(item){
|
||||
this.toggleAllPanel()
|
||||
this.player.api.cameraTour.play(item.id)
|
||||
console.log('进入路线导览',item)
|
||||
}
|
||||
|
||||
deactivated(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue