fix: 修改可变点限速不显示的问题

This commit is contained in:
xiaoyan 2023-09-21 15:05:54 +08:00
parent 78766de39c
commit 2292fbc6d8
4 changed files with 11 additions and 19 deletions

View File

@ -35,7 +35,7 @@
"zoomMin": 15,
"zoomMax": 17,
"catch":true,
"checkLinkId": true
"checkLinkId": false
},
"2002": {
"table": "OMDB_RD_LINK_FUNCTION_CLASS",
@ -339,19 +339,19 @@
{
"k": "location",
"v": "1",
"klib": "location",
"klib": "ref",
"vlib": "左"
},
{
"k": "location",
"v": "2",
"klib": "locationlib",
"klib": "ref",
"vlib": "右"
},
{
"k": "location",
"v": "3",
"klib": "location",
"klib": "ref",
"vlib": "上"
}
]

View File

@ -166,7 +166,7 @@ class PersonalCenterFragment(private var indoorDataListener: ((Boolean) -> Unit?
// 定位到指定位置
niMapController.mMapView.vtmMap.animator()
// .animateTo(GeoPoint( 40.05108004733645, 116.29187746293708 ))
.animateTo(GeoPoint(40.09819324139729,116.53123207733361 ))
.animateTo(GeoPoint(40.5016054261786, 115.82381251427815))
}
R.id.personal_center_menu_open_all_layer -> {

View File

@ -1871,18 +1871,10 @@
<!--可变点限速-->
<m v="OMDB_SPEEDLIMIT_VAR" >
<m k="speedFlag" v="0">
<caption fill="#000000" k="maxSpeed" priority="0" size="12" stroke="#ffffff"
stroke-width="1.0"></caption>
<symbol src="assets:omdb/icon_4004_0.svg" symbol-height="42"
symbol-width="42"></symbol>
</m>
<m k="speedFlag" v="1">
<caption fill="#000000" k="maxSpeed" priority="0" size="12" stroke="#ffffff"
stroke-width="1.0"></caption>
<symbol src="assets:omdb/icon_4004_0.svg" symbol-height="42"
symbol-width="42"></symbol>
</m>
<caption fill="#ffffff" k="ref" priority="0" size="12" stroke="#ffffff"
stroke-width="1.0"></caption>
<symbol src="assets:omdb/icon_4004_0.svg" symbol-height="42"
symbol-width="42"></symbol>
</m>

View File

@ -1470,8 +1470,8 @@ public class GeometryTools {
double startLatitude = MercatorProjection.tileYToLatitude(tile.tileY, tile.zoomLevel);
double endLongitude = MercatorProjection.tileXToLongitude(tile.tileX + 1, tile.zoomLevel);
double endLatitude = MercatorProjection.tileYToLatitude(tile.tileY + 1, tile.zoomLevel);
return GeometryTools.createPolygonFromCoords(new Coordinate[]{new Coordinate(startLongitude, startLongitude), new Coordinate(endLongitude, startLatitude),
new Coordinate(endLongitude, endLatitude), new Coordinate(startLongitude, endLatitude), new Coordinate(startLongitude, startLongitude)});
return GeometryTools.createPolygonFromCoords(new Coordinate[]{new Coordinate(startLongitude, startLatitude), new Coordinate(endLongitude, startLatitude),
new Coordinate(endLongitude, endLatitude), new Coordinate(startLongitude, endLatitude), new Coordinate(startLongitude, startLatitude)});
}
/**
* 经纬度转墨卡托