|
|
@ -54,7 +54,15 @@ export class WaterRoadComponent implements OnInit { |
|
|
|
{lng:108.158521,lat: 22.61322}, |
|
|
|
{lng:108.158521,lat: 22.61322}, |
|
|
|
{lng:107.925062,lat: 22.565038}, |
|
|
|
{lng:107.925062,lat: 22.565038}, |
|
|
|
{lng:108.180494,lat: 22.501616}, |
|
|
|
{lng:108.180494,lat: 22.501616}, |
|
|
|
{lng:107.743222,lat: 22.535121}] |
|
|
|
{lng:107.743222,lat: 22.535121}, |
|
|
|
|
|
|
|
{lng:108.373809,lat: 22.764746}, |
|
|
|
|
|
|
|
{lng:108.378895,lat: 22.761877}, |
|
|
|
|
|
|
|
{lng:108.383337,lat: 22.766467}, |
|
|
|
|
|
|
|
{lng:108.37647,lat: 22.763341}, |
|
|
|
|
|
|
|
{lng:108.37662,lat: 22.767397}, |
|
|
|
|
|
|
|
{lng:108.378916,lat: 22.758513}, |
|
|
|
|
|
|
|
{lng:108.379045,lat: 22.765695}, |
|
|
|
|
|
|
|
{lng:108.384731,lat: 22.760096},] |
|
|
|
let Arr = [] |
|
|
|
let Arr = [] |
|
|
|
arr.forEach(item=>{ |
|
|
|
arr.forEach(item=>{ |
|
|
|
let viaMarker = new AMap.Marker({ |
|
|
|
let viaMarker = new AMap.Marker({ |
|
|
@ -66,6 +74,7 @@ export class WaterRoadComponent implements OnInit { |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.map = new AMap.Map('map',{ |
|
|
|
this.map = new AMap.Map('map',{ |
|
|
|
|
|
|
|
center: [108.377865, 22.763499], //初始地图中心点
|
|
|
|
zoom: 16 |
|
|
|
zoom: 16 |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -73,7 +82,7 @@ export class WaterRoadComponent implements OnInit { |
|
|
|
console.log(e.lnglat.getLng() + ',' + e.lnglat.getLat())
|
|
|
|
console.log(e.lnglat.getLng() + ',' + e.lnglat.getLat())
|
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
this.map.setCity('南宁市') |
|
|
|
// this.map.setCity('南宁市')
|
|
|
|
this.map.add(Arr);//火源标点
|
|
|
|
this.map.add(Arr);//火源标点
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|