代码优化

This commit is contained in:
wangcongtao
2021-03-03 10:07:02 +08:00
parent 7ca355f885
commit b37ee31e65
8 changed files with 25 additions and 14 deletions

View File

@@ -190,11 +190,11 @@ class BaseDrawer {
* @return
*/
protected double[] matchRoad( double lon, double lat, double angle, boolean isRtk ) {
double amap[] = CoordinateUtils.transformGcj02toWgs84( lat, lon );
double wgs[] = CoordinateUtils.transformGcj02toWgs84( lat, lon );
return MogoApisHandler.getInstance()
.getApis()
.getMapServiceApi()
.getMapUIController()
.matchRoad( amap[0], amap[1], angle, isRtk );
.matchRoad( wgs[0], wgs[1], angle, true, isRtk );
}
}

View File

@@ -33,7 +33,7 @@ import java.util.concurrent.ConcurrentHashMap;
/**
* @author congtaowang
* @since 2020/10/28
*
* <p>
* 云端数据绘制
*/
public class SnapshotSetDataDrawer extends BaseDrawer implements IMogoMarkerClickListener, IMogoStatusChangedListener {