diff --git a/src/app/data-collection/fire-force/fire-force.component.ts b/src/app/data-collection/fire-force/fire-force.component.ts index 9fcd27f..b541c0d 100644 --- a/src/app/data-collection/fire-force/fire-force.component.ts +++ b/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" diff --git a/src/app/data-collection/linkage-forces/linkage-forces.component.ts b/src/app/data-collection/linkage-forces/linkage-forces.component.ts index 1c31b36..18eaf06 100644 --- a/src/app/data-collection/linkage-forces/linkage-forces.component.ts +++ b/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" diff --git a/src/app/data-collection/water-collection/water-collection.component.ts b/src/app/data-collection/water-collection/water-collection.component.ts index c28d5ba..6192509 100644 --- a/src/app/data-collection/water-collection/water-collection.component.ts +++ b/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" diff --git a/src/app/gis-management/gis-labeling/gis-labeling.component.ts b/src/app/gis-management/gis-labeling/gis-labeling.component.ts index a856ee9..744c50e 100644 --- a/src/app/gis-management/gis-labeling/gis-labeling.component.ts +++ b/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); } diff --git a/src/app/key-unit/basicinfo/basicinfo.component.ts b/src/app/key-unit/basicinfo/basicinfo.component.ts index bfabd90..df26f68 100644 --- a/src/app/key-unit/basicinfo/basicinfo.component.ts +++ b/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 diff --git a/src/app/key-unit/router-gis/router-gis.component.ts b/src/app/key-unit/router-gis/router-gis.component.ts index edc9228..d4c29a3 100644 --- a/src/app/key-unit/router-gis/router-gis.component.ts +++ b/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('唐山市'); //设置地图中心点 } //交换起始点 diff --git a/src/app/key-unit/water-road/water-road.component.ts b/src/app/key-unit/water-road/water-road.component.ts index 78641f6..e2f73d5 100644 --- a/src/app/key-unit/water-road/water-road.component.ts +++ b/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 diff --git a/src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts b/src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts index e7b08f5..8db7bb5 100644 --- a/src/app/plan-audit/fireforce-audit/fireforce-audit.component.ts +++ b/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); diff --git a/src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts b/src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts index 3ddc08d..bfcef89 100644 --- a/src/app/plan-audit/linkageforces-audit/linkageforces-audit.component.ts +++ b/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); diff --git a/src/app/plan-audit/water-audit/water-audit.component.ts b/src/app/plan-audit/water-audit/water-audit.component.ts index a62fdf0..9831c9f 100644 --- a/src/app/plan-audit/water-audit/water-audit.component.ts +++ b/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); diff --git a/src/app/test/test.component.ts b/src/app/test/test.component.ts index 2fee582..f698dc6 100644 --- a/src/app/test/test.component.ts +++ b/src/app/test/test.component.ts @@ -18,7 +18,7 @@ export class TestComponent implements OnInit { } }); - this.map.setCity('上海市'); + this.map.setCity('唐山市'); }, 0); } //生成图片 diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.ts b/src/app/ui/collection-tools-plan/collection-tools.component.ts index 4c4fccb..cb396ba 100644 --- a/src/app/ui/collection-tools-plan/collection-tools.component.ts +++ b/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) => { diff --git a/src/modules/map/declare/keda-map.ts b/src/modules/map/declare/keda-map.ts index 605f763..43ab7c0 100644 --- a/src/modules/map/declare/keda-map.ts +++ b/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 {