Commit 52930465 by niuxiaolin

latest ui 08/09/2019 15:18:28

parent 184e2f8a
...@@ -119,7 +119,7 @@ export class MainComponent implements OnInit { ...@@ -119,7 +119,7 @@ export class MainComponent implements OnInit {
this.map.setMapStyleV2({ styleJson: theme }); this.map.setMapStyleV2({ styleJson: theme });
this.map.enableScrollWheelZoom(true); this.map.enableScrollWheelZoom(true);
//this.map.enableContinuousZoom() //this.map.enableContinuousZoom()
this.map.centerAndZoom("山西省",11); //this.map.centerAndZoom("山西省",11);
var _map =this.map; var _map =this.map;
var maping = {8:11,9:15,10:20,11:22,12:25,13:26,14:28,15:29} var maping = {8:11,9:15,10:20,11:22,12:25,13:26,14:28,15:29}
this.map.addEventListener("zoomend", function() { this.map.addEventListener("zoomend", function() {
...@@ -169,7 +169,7 @@ export class MainComponent implements OnInit { ...@@ -169,7 +169,7 @@ export class MainComponent implements OnInit {
// setTimeout(() => { // setTimeout(() => {
this.loadPolys(res,false); this.loadPolys(res,false);
//}, 5000); //}, 5000);
}); setTimeout(() => {
this.http.get<any>(this.s.basePath + "/mapLable/list").subscribe(res => { this.http.get<any>(this.s.basePath + "/mapLable/list").subscribe(res => {
// this.maplabes = res.data; // this.maplabes = res.data;
//加载labels //加载labels
...@@ -177,6 +177,10 @@ export class MainComponent implements OnInit { ...@@ -177,6 +177,10 @@ export class MainComponent implements OnInit {
this.loadLabels(res.data); this.loadLabels(res.data);
//}, 5000); //}, 5000);
}); });
}, 2000);
});
this.http.get<any>(this.s.basePath + "/scetion/list").subscribe(res => { this.http.get<any>(this.s.basePath + "/scetion/list").subscribe(res => {
this.allsecs = res.data; this.allsecs = res.data;
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment