feat: symbol增加y方向的偏移选项

This commit is contained in:
xiaoyan 2023-09-20 15:35:14 +08:00
parent 2b574da6d4
commit 3dc346f29d
4 changed files with 7 additions and 4 deletions

View File

@ -845,8 +845,9 @@ class ImportPreProcess {
val listResult = mutableListOf<ReferenceEntity>()
val coorEnd = Coordinate(pointStart.getX() + dx, pointStart.getY() + dy, pointStart.z)
renderEntity.geometry =
WKTWriter(3).write(GeometryTools.createLineString(arrayOf(pointStart, coorEnd)))
renderEntity.geometry = GeometryTools.createGeometry(GeoPoint(centerPoint!!.y, centerPoint.x)).toString()
// renderEntity.geometry =
// WKTWriter(3).write(GeometryTools.createLineString(arrayOf(pointStart, coorEnd)))
val code = renderEntity.properties["signType"]
renderEntity.properties["src"] = "assets:omdb/appendix/1105_${code}_0.svg"

View File

@ -260,6 +260,8 @@
<xs:attribute name="gland" default="true" type="xs:boolean" use="optional"/>
<!-- 原图标旋转角度默认情况下应该使用以X轴为正方向的图标此处可设置原图标的旋转角度在渲染时自动对图标进行旋转仅支持线要素 -->
<xs:attribute name="degree" default="0" type="xs:float" use="optional"/>
<!-- 图标在y轴方向上的偏移量 -->
<xs:attribute name="dy" default="0" type="xs:float" use="optional"/>
</xs:complexType>
<xs:complexType name="extrusion">

View File

@ -1568,7 +1568,7 @@
<!-- 交通标牌 -->
<m v="OMDB_TRAFFIC_SIGN">
<symbol repeat="false" repeat-gap="2000" repeat-start="0" rotate="true"
src="@src" symbol-height="24" symbol-width="24" degree="-90"></symbol>
src="@src" symbol-height="24" symbol-width="24" degree="-90" dy="-30"></symbol>
</m>
<m v="OMDB_AREA">

2
vtm

@ -1 +1 @@
Subproject commit f2af87c6a012ac41d6f22a77d6b45853b250ed3e
Subproject commit 719c44b65d3ed26d725b24b3a5366b281c9e4fad