云端下发定位改为gps,绘制侧传参为gps定位,不需要地图侧转一次,setGps(true)

如果传参为高德定位,setGps(false),地图侧转高德定位为GPS再绘制
This commit is contained in:
liujing
2021-11-30 11:00:59 +08:00
parent 4a7787fcbb
commit 25ef9fb765
5 changed files with 12 additions and 22 deletions

View File

@@ -1,29 +1,19 @@
{
"type": 1,
"lat": 26.87912015,
"lon": 112.56885373,
"distance": 2.678,
"collisionLat": 26.8791769,
"collisionLon": 112.56896496,
"lat": 26.851993861219782,
"lon": 112.57065318116094,
"distance": 5.89,
"collisionLat": 26.85198163866211,
"collisionLon": 112.57059540184451,
"stopLines": [
{
"lat": 26.8791769,
"lon": 112.56896496
},
{
"lat": 26.879153,
"lon": 112.568997
}
],
"from": 1,
"angle": 240,
"direction": 1,
"speed": 11.108121,
"targetColor": "#FF4040",
"stopLineDistance": 60,
"warningContent": "小心行人",
"heading": 0,
"heading": 76,
"showTime": 3,
"roadwidth": 4.0
}