|
|
@ -46,7 +46,7 @@ export default { |
|
|
|
this.aMapIns = new this.AMap.Map(this.$refs.mapContainerRef, { |
|
|
|
resizeEnable: true, //是否监控地图容器尺寸变化 |
|
|
|
mapStyle: "amap://styles/blue", |
|
|
|
zoom: 9, |
|
|
|
zoom: 7, |
|
|
|
center: [116.629514, 35.794168], |
|
|
|
}); |
|
|
|
|
|
|
@ -105,7 +105,7 @@ export default { |
|
|
|
}); |
|
|
|
|
|
|
|
//画线 |
|
|
|
function drawingLine(AMap, datas, borderWeight = 1,strokeWeight = 0, olColor = "#00B3CC") { |
|
|
|
function drawingLine(AMap, datas, borderWeight = 1, strokeWeight = 0, olColor = "#00B3CC") { |
|
|
|
return new AMap.Polyline({ |
|
|
|
path: datas, |
|
|
|
isOutline: true, |
|
|
@ -126,7 +126,7 @@ export default { |
|
|
|
|
|
|
|
//画车道 |
|
|
|
// let jhPolyline; |
|
|
|
function drawJHPath(AMap, lczPointList,borderWeight = 1,strokeWeight = 60) { |
|
|
|
function drawJHPath(AMap, lczPointList, borderWeight = 1, strokeWeight = 60) { |
|
|
|
return new AMap.Polyline({ |
|
|
|
path: lczPointList, // 设置线覆盖物路径 |
|
|
|
showDir: true, |
|
|
|