Browse Source

[修改]gis定位唐山

tangshan
邵佳豪 2 years ago
parent
commit
357ed14f63
  1. 8
      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. 2
      src/app/key-unit/basicinfo/basicinfo.component.ts
  6. 4
      src/app/key-unit/router-gis/router-gis.component.ts
  7. 2
      src/app/key-unit/water-road/water-road.component.ts
  8. 2
      src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts
  9. 2
      src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts
  10. 2
      src/app/plan-audit/water-audit/water-audit.component.ts
  11. 2
      src/app/test/test.component.ts
  12. 2
      src/app/ui/collection-tools-plan/collection-tools.component.ts
  13. 4
      src/modules/map/declare/keda-map.ts

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

@ -1028,7 +1028,7 @@ export class FireForceComponent implements OnInit {
// 将 markers 添加到地图
this.map.add(this.newPositionMarker);
} else {
this.map.setCity('上海市');
this.map.setCity('唐山市');
}
//相关资料
data.relevantInfomationData ? this.AttachmentArr = JSON.parse(data.relevantInfomationData) : null
@ -1055,7 +1055,7 @@ export class FireForceComponent implements OnInit {
alert('获取信息错误!')
})
} else {
this.map.setCity('上海市');
this.map.setCity('唐山市');
}
//寻找管辖单位
@ -1333,7 +1333,7 @@ export class FireForceComponent 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.selectedFireForce.contentVerify = null
this.clearData()
}
@ -1524,7 +1524,7 @@ export class FireForceComponent implements OnInit {
this.map = MapFactory.MapInstance('container', {
zoom: 12
})
this.map.setCity('上海市');
this.map.setCity('唐山市');
//输入提示
var autoOptions = {
input: "tipinput"

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

@ -423,7 +423,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
}
}
@ -539,7 +539,7 @@ export class LinkageForcesComponent implements OnInit {
this.map = MapFactory.MapInstance('container', {
zoom:12
})
this.map.setCity('上海市');
this.map.setCity('唐山市');
//输入提示
var autoOptions = {
input: "tipinput"

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

@ -430,7 +430,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
}
@ -543,7 +543,7 @@ export class WaterCollectionComponent implements OnInit {
this.map = MapFactory.MapInstance('container', {
zoom:12
})
this.map.setCity('上海市');
this.map.setCity('唐山市');
//输入提示
var autoOptions = {
input: "tipinput"

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

@ -1044,7 +1044,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
@ -1064,7 +1064,7 @@ export class GisLabelingComponent implements OnInit {
layers: [layer],
WebGLParams: { preserveDrawingBuffer: true }
});
that.map.setCity('上海市');
that.map.setCity('唐山市');
that.mouseTool = MapFactory.MouseToolInstance(that.map);
}

2
src/app/key-unit/basicinfo/basicinfo.component.ts

@ -200,7 +200,7 @@ export class BasicinfoComponent implements OnInit {
this.map.add(this.oldPositionMarker);
} else {
// console.log('未标注单位位置')
this.map.setCity('上海');
this.map.setCity('唐山市');
}
}
markerPosition2

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

@ -100,7 +100,7 @@ export class RouterGISComponent implements OnInit {
that.map = MapFactory.MapInstance('map',{
layers:[layer], //当只想显示标准图层时layers属性可缺省,
});
that.map.setCity('上海市');
that.map.setCity('唐山市');
that.startCoordinate && that.endCoordinate? that.queryGISRoute() : null
}
@ -177,7 +177,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

@ -324,7 +324,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

@ -53,7 +53,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

@ -59,7 +59,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

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

2
src/app/test/test.component.ts

@ -18,7 +18,7 @@ export class TestComponent implements OnInit {
}
});
this.map.setCity('上海市');
this.map.setCity('唐山市');
}, 0);
}
//生成图片

2
src/app/ui/collection-tools-plan/collection-tools.component.ts

@ -1366,7 +1366,7 @@ export class CollectionToolsPlanComponent implements OnInit {
this.map.setZoom(this.selectingSitePlan.zoomLevel); //设置地图层级
this.map.setCenter([this.selectingSitePlan.defaultCenter.x, this.selectingSitePlan.defaultCenter.y])
} else {
this.map.setCity('上海市');
this.map.setCity('唐山市');
}
this.map.on('click', (e) => {

4
src/modules/map/declare/keda-map.ts

@ -10,8 +10,8 @@ class KedaBasic implements ISelf {
self: any;
discriminator: string = "ISelf";
}
const cityPosition: number[] = [121.469167918, 31.232262275]; //上海市 坐标
const beforCity: string = "上海市"; //当前城市
const cityPosition: number[] = [121.469167918, 31.232262275]; //唐山市 坐标
const beforCity: string = "唐山市"; //当前城市
const cityCode: string = "130200"; //当前城市 行政编码
export class KeDaMap extends KedaBasic implements IMap {

Loading…
Cancel
Save