增加SA/PA渲染原则

This commit is contained in:
qiji4215
2023-08-15 14:16:00 +08:00
parent 5fa01313b4
commit de86fb57fb
5 changed files with 51 additions and 22 deletions

View File

@@ -180,7 +180,7 @@
width="0.1" />
<!--道路形态-->
<style-line dasharray="8,2,2,2,2,2" id="road_morphology" repeat-gap="3" repeat-start="0" stroke="#fcba5a" width="0.2" />
<style-line dasharray="8,2,2,2,2,2" id="road_morphology" repeat-gap="3" repeat-start="0" stroke="#1afa29" width="0.2" />
<!--###### ASSIGNMENT ######-->
@@ -2121,19 +2121,21 @@
<!-- 道路属性 -->
<m v="OMDB_LINK_ATTRIBUTE">
<m k="code" v="OMDB_LINK_ATTRIBUTE_SA">
<m k="type" v="1">
<text use="road" stroke="#fcba5a" size="16"></text>
<line stroke="#1afa29" width="0.25" />
</m>
<m k="code" v="OMDB_LINK_ATTRIBUTE_PA">
<m k="type" v="2">
<text use="road" stroke="#fcba5a" size="16"></text>
<line stroke="#1afa29" width="0.25" />
</m>
<m k="code" v="OMDB_LINK_ATTRIBUTE_FORNTAGE">
<m k="type" v="3">
<line use="road_morphology" />
</m>
<m k="code" v="OMDB_LINK_ATTRIBUTE_MAIN_SIDE_ACCESS">
<m k="type" v="4">
<line use="road_morphology" />
</m>

View File

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