Commit 52930465 by niuxiaolin

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

parent 184e2f8a
......@@ -119,7 +119,7 @@ export class MainComponent implements OnInit {
this.map.setMapStyleV2({ styleJson: theme });
this.map.enableScrollWheelZoom(true);
//this.map.enableContinuousZoom()
this.map.centerAndZoom("山西省",11);
//this.map.centerAndZoom("山西省",11);
var _map =this.map;
var maping = {8:11,9:15,10:20,11:22,12:25,13:26,14:28,15:29}
this.map.addEventListener("zoomend", function() {
......@@ -169,14 +169,18 @@ export class MainComponent implements OnInit {
// setTimeout(() => {
this.loadPolys(res,false);
//}, 5000);
setTimeout(() => {
this.http.get<any>(this.s.basePath + "/mapLable/list").subscribe(res => {
// this.maplabes = res.data;
//加载labels
// setTimeout(() => {
this.loadLabels(res.data);
//}, 5000);
});
}, 2000);
});
this.http.get<any>(this.s.basePath + "/mapLable/list").subscribe(res => {
// this.maplabes = res.data;
//加载labels
// setTimeout(() => {
this.loadLabels(res.data);
//}, 5000);
});
this.http.get<any>(this.s.basePath + "/scetion/list").subscribe(res => {
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