Browse Source

[完善]地图相关修改为株洲市中心点

zhuzhou
邵佳豪 4 years ago
parent
commit
1bc637f97c
  1. 988
      src/app/data-collection/fire-force/fire-force.component.ts
  2. 4
      src/app/data-collection/linkage-forces/linkage-forces.component.ts
  3. 4
      src/app/data-collection/water-collection/water-collection.component.ts
  4. 4
      src/app/gis-management/gis-labeling/gis-labeling.component.ts
  5. 4
      src/app/key-unit/router-gis/router-gis.component.ts
  6. 2
      src/app/key-unit/water-road/water-road.component.ts
  7. 2
      src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts
  8. 2
      src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts
  9. 2
      src/app/plan-audit/water-audit/water-audit.component.ts
  10. 8
      src/app/statistic-analysis/home/home.component.ts

988
src/app/data-collection/fire-force/fire-force.component.ts

File diff suppressed because it is too large Load Diff

4
src/app/data-collection/linkage-forces/linkage-forces.component.ts

@ -414,7 +414,7 @@ export class LinkageForcesComponent implements OnInit {
this.clearData()
this.LinkageForceDetailInfo.linkageForceType = data
this.newPositionMarker ? this.map.remove(this.newPositionMarker) : null
this.map.setCity('上海市');
this.map.setCity('株洲市');
this.LinkageForceDetailInfo.contentVerify = null
}
}
@ -530,7 +530,7 @@ export class LinkageForcesComponent implements OnInit {
this.map = new AMap.Map('container', {
zoom:12
})
this.map.setCity('上海市');
this.map.setCity('株洲市');
//输入提示
var autoOptions = {
input: "tipinput"

4
src/app/data-collection/water-collection/water-collection.component.ts

@ -423,7 +423,7 @@ export class WaterCollectionComponent implements OnInit {
this.newPositionMarker ? this.map.remove(this.newPositionMarker) : null
this.positionLngLat.x = 0
this.positionLngLat.y = 0
this.map.setCity('上海市');
this.map.setCity('株洲市');
this.clearData()
this.waterData.contentVerify = null
}
@ -536,7 +536,7 @@ export class WaterCollectionComponent implements OnInit {
this.map = new AMap.Map('container', {
zoom:12
})
this.map.setCity('上海市');
this.map.setCity('株洲市');
//输入提示
var autoOptions = {
input: "tipinput"

4
src/app/gis-management/gis-labeling/gis-labeling.component.ts

@ -976,7 +976,7 @@ export class GisLabelingComponent implements OnInit {
features: ['bg', 'road', 'point','building'],
mapStyle: 'amap://styles/light',
});
this.map.setCity('上海市');
this.map.setCity('株洲市');
}
this.satelliteModel = false
this.loadModel = false
@ -996,7 +996,7 @@ export class GisLabelingComponent implements OnInit {
layers:[layer], //当只想显示标准图层时layers属性可缺省,
});
that.map.setCity('上海市');
that.map.setCity('株洲市');;
AMap.plugin(["AMap.RangingTool", "AMap.MouseTool"],function () {
that.mouseTool=new AMap.MouseTool(that.map);
});

4
src/app/key-unit/router-gis/router-gis.component.ts

@ -98,7 +98,7 @@ export class RouterGISComponent implements OnInit {
that.map = new AMap.Map('map',{
layers:[layer], //当只想显示标准图层时layers属性可缺省,
});
that.map.setCity('上海市');
that.map.setCity('株洲市');;
AMap.plugin('AMap.Driving', function() {
that.startCoordinate && that.endCoordinate? that.queryGISRoute() : null
})
@ -179,7 +179,7 @@ export class RouterGISComponent implements OnInit {
this.endCoordinate = null
this.routeGIS? this.routeGIS.clear() : null
this.routes = { distance: 0, time: 0, steps: [], }
this.map.setCity('上海市'); //设置地图中心点
this.map.setCity('株洲市'); //设置地图中心点
}
//交换起始点

2
src/app/key-unit/water-road/water-road.component.ts

@ -312,7 +312,7 @@ export class WaterRoadComponent implements OnInit {
this.map.add(this.unitMarker);
this.waterSubmit(1)
}else{
this.map.setCity('上海市');
this.map.setCity('株洲市');
let config = new MatSnackBarConfig();
config.verticalPosition = 'top';
config.duration = 3000

2
src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts

@ -51,7 +51,7 @@ export class FireforceAuditComponent implements OnInit {
// 将 markers 添加到地图
this.map.add(this.newPositionMarker);
}else{
this.map.setCity('上海市');
this.map.setCity('株洲市');
}
}, 0);

2
src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts

@ -57,7 +57,7 @@ export class LinkageforcesAuditComponent implements OnInit {
// 将 markers 添加到地图
this.map.add(this.newPositionMarker);
}else{
this.map.setCity('上海市');
this.map.setCity('株洲市');
}
}, 0);

2
src/app/plan-audit/water-audit/water-audit.component.ts

@ -36,7 +36,7 @@ export class WaterAuditComponent implements OnInit {
// 将 markers 添加到地图
this.map.add(this.newPositionMarker);
}else{
this.map.setCity('上海市');
this.map.setCity('株洲市');
}
}, 0);

8
src/app/statistic-analysis/home/home.component.ts

@ -130,9 +130,9 @@ export class HomeComponent implements OnInit {
// let adcode = this.adcode; //行政编码
let adcode
if(sessionStorage.getItem("realName") == "上海总队"){
adcode = 310000
adcode = 430200
}else{
adcode = 310000
adcode = 430200
}
districtExplorer.loadAreaNode(adcode, (error, areaNode)=> {
@ -263,9 +263,9 @@ export class HomeComponent implements OnInit {
// console.log('区域外点击');
let adcode
if(sessionStorage.getItem("realName") == "上海总队"){
adcode = 310000
adcode = 430200
}else{
adcode = 310000
adcode = 430200
}
districtExplorer.loadAreaNode(adcode, (error, areaNode)=> {
//更新地图视野

Loading…
Cancel
Save