修改任务线颜色

This commit is contained in:
squallzhjch
2023-05-06 16:13:12 +08:00
parent 8e4d1c7e0e
commit 51be5bd178
3 changed files with 19 additions and 13 deletions

View File

@@ -70,7 +70,7 @@ class LineHandler(context: AppCompatActivity, mapView: NIMapView) : BaseHandler(
.fillColor(context.resources.getColor(R.color.draw_line_red_color, null))
.fillAlpha(0.5f)
.strokeColor(context.resources.getColor(R.color.draw_line_red_color, null))
.strokeWidth(4f)
.strokeWidth(8f)
.fixed(true).build()
)
addLayer(omdbTaskLinkLayer, NIMapView.LAYER_GROUPS.VECTOR)

View File

@@ -31,6 +31,7 @@ class OmdbTaskLinkLayer(map: Map, private var style: Style) : VectorLayer(map) {
hadLinkDvoBeanList.forEach {
addLine(it, style)
}
update()
}
fun removeLine(linkPid: String): Boolean {