This commit is contained in:
zk
2024-02-20 13:18:30 +08:00
parent ef3e1c3b31
commit 2def3738c2
4 changed files with 69 additions and 60 deletions
+14 -5
View File
@@ -56,12 +56,12 @@ export const Map = {
getPolygon: function (geoJson: string, lngLats: any) { getPolygon: function (geoJson: string, lngLats: any) {
return new AMap.Polyline({ return new AMap.Polyline({
path: lngLats[0], path: lngLats[0],
strokeColor: '#6ccffe', strokeColor: '#2384dd',
strokeWeight: 3, strokeWeight: 3,
lineJoin: 'round', //折线拐点的绘制样式 // lineJoin: 'round', //折线拐点的绘制样式
isOutline: true, isOutline: false,
borderWeight: 2, borderWeight: 2,
outlineColor: '#2d475f', // outlineColor: '#6ccffe',
}); });
}, },
}); });
@@ -75,8 +75,17 @@ export const Map = {
getPolygon: function (geoJson: string, lngLats: any) { getPolygon: function (geoJson: string, lngLats: any) {
return new AMap.Polyline({ return new AMap.Polyline({
path: lngLats[0], path: lngLats[0],
strokeColor: '#359de5', // strokeColor: '#57b2f8',
// strokeColor: '#2BA5FF',
// strokeColor: '#3d6eff',
// strokeWeight: 2,
// zIndex: 10,
isOutline: true,
outlineColor: '#2692fc', //88a5f8
borderWeight: 1,
strokeColor: '#88b9f8', //2657fc
strokeWeight: 1, strokeWeight: 1,
strokeOpacity: 0.8,
}); });
}, },
}); });