|
@@ -148,6 +148,7 @@
|
|
|
:strokeColor="polygon.strokeColor"
|
|
|
:strokeWeight="polygon.strokeWeight"
|
|
|
:strokeOpacity="polygon.strokeOpacity"
|
|
|
+ :strokeStyle="polygon.strokeStyle"
|
|
|
:extData="{index}"
|
|
|
:events="polygonEvents">
|
|
|
</el-amap-polygon>
|
|
@@ -160,6 +161,7 @@
|
|
|
:strokeColor="polyline.strokeColor"
|
|
|
:strokeWeight="polyline.strokeWeight"
|
|
|
:strokeOpacity="polyline.strokeOpacity"
|
|
|
+ :strokeStyle="polyline.strokeStyle"
|
|
|
:extData="{index}"
|
|
|
:events="polylineEvents"
|
|
|
:path="polyline.path">
|
|
@@ -791,6 +793,7 @@ export default {
|
|
|
fillColor: obj.fillColor || '#DC3021', // 填充色
|
|
|
fillOpacity: obj.fillOpacity || 0.4, // 填充透明度
|
|
|
strokeColor: obj.strokeColor || '#DC3021', // 轮廓颜色
|
|
|
+ strokeStyle: obj.strokeStyle || 'solid',
|
|
|
strokeWeight: 2, // 轮廓宽度
|
|
|
strokeOpacity: 0.8, // 轮廓透明度
|
|
|
text: obj.text,
|
|
@@ -823,6 +826,7 @@ export default {
|
|
|
fillColor: obj.fillColor || '#DC3021', // 填充色
|
|
|
fillOpacity: obj.fillOpacity || 0.4, // 填充透明度
|
|
|
strokeColor: obj.strokeColor || '#DC3021', // 轮廓颜色
|
|
|
+ strokeStyle: obj.strokeStyle || 'solid',
|
|
|
strokeWeight: 5, // 轮廓宽度
|
|
|
strokeOpacity: 0.8, // 轮廓透明度
|
|
|
text: obj.text,
|
|
@@ -838,10 +842,10 @@ export default {
|
|
|
if (str === 'polygons' || str === 'polylines') {
|
|
|
if (tempData[index].editable) {
|
|
|
tempData[index].editable = false
|
|
|
- tempData[index].strokeStyle = 'solid'
|
|
|
+ // tempData[index].strokeStyle = 'solid'
|
|
|
} else {
|
|
|
tempData[index].editable = true
|
|
|
- tempData[index].strokeStyle = 'dashed'
|
|
|
+ // tempData[index].strokeStyle = 'dashed'
|
|
|
}
|
|
|
} else {
|
|
|
tempData[index].draggable = !tempData[index].draggable
|
|
@@ -942,6 +946,7 @@ export default {
|
|
|
tempData[index].fillColor = obj.fillColor
|
|
|
tempData[index].fillOpacity = obj.fillOpacity
|
|
|
tempData[index].strokeColor = obj.strokeColor
|
|
|
+ tempData[index].strokeStyle = obj.strokeStyle
|
|
|
}
|
|
|
this[str] = [...tempData]
|
|
|
this.$storage(`map_${str}`, JSON.stringify(tempData))
|