|
|
|
@ -121,7 +121,12 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
isHN = false; //是否是海南
|
|
|
|
|
async ngOnInit(): Promise<void> { |
|
|
|
|
await this.getProfiles(); |
|
|
|
|
this.Profiles.organizationName.indexOf("海南") !== -1 |
|
|
|
|
? (this.isHN = true) |
|
|
|
|
: (this.isHN = false); |
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.mapInit(); |
|
|
|
|
}, 0); |
|
|
|
@ -182,6 +187,16 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
Profiles; |
|
|
|
|
getProfiles() { |
|
|
|
|
return new Promise<void>((resolve, reject) => { |
|
|
|
|
this.http.get("/api/Account/Profiles").subscribe((res) => { |
|
|
|
|
this.Profiles = res; |
|
|
|
|
resolve(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//构造重点单位checkbox控制器
|
|
|
|
|
buildUnits() { |
|
|
|
|
const arr = this.keyUnitList.map((item) => { |
|
|
|
@ -287,7 +302,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
ketUnitSubmit(value) { |
|
|
|
|
if (this.markers.length == 0) { |
|
|
|
|
let paramsdata: any = { |
|
|
|
|
PageSize: 99999, |
|
|
|
|
PageSize: 9999, |
|
|
|
|
BuildingTypeIdList: |
|
|
|
|
this.selectedUnitList.length != 0 ? this.selectedUnitList : ["123"], |
|
|
|
|
}; |
|
|
|
@ -322,7 +337,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
if (this.unitAreaDefault == "-1") { |
|
|
|
|
//如果勾选全部
|
|
|
|
|
let paramsdata: any = { |
|
|
|
|
PageSize: 99999, |
|
|
|
|
PageSize: 9999, |
|
|
|
|
BuildingTypeIdList: |
|
|
|
|
this.selectedUnitList.length != 0 ? this.selectedUnitList : ["123"], |
|
|
|
|
}; |
|
|
|
@ -1264,7 +1279,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
features: ["bg", "road", "point", "building"], |
|
|
|
|
mapStyle: "amap://styles/light", |
|
|
|
|
}); |
|
|
|
|
this.map.setCity("上海市"); |
|
|
|
|
this.isHN ? this.map.setCity("海南省") : this.map.setCity("上海市"); |
|
|
|
|
} |
|
|
|
|
this.satelliteModel = false; |
|
|
|
|
this.loadModel = false; |
|
|
|
@ -1284,7 +1299,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
layers: [layer], |
|
|
|
|
WebGLParams: { preserveDrawingBuffer: true }, |
|
|
|
|
}); |
|
|
|
|
that.map.setCity("上海市"); |
|
|
|
|
this.isHN ? that.map.setCity("海南省") : that.map.setCity("上海市"); |
|
|
|
|
that.mouseTool = MapFactory.MouseToolInstance(that.map); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1744,8 +1759,7 @@ export class GisLabelingComponent implements OnInit {
|
|
|
|
|
console.log("走这里了吗2", that.routeStartList); |
|
|
|
|
that.routeStartList = []; |
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
|
|
that.routeStartList = [...result.tips]; |
|
|
|
|
that.routeStartList = [...result.tips]; |
|
|
|
|
|
|
|
|
|
console.log("走这里了吗3", that.routeStartList); |
|
|
|
|
}, 0); |
|
|
|
|