优化云端下发数据在地图上的渲染

This commit is contained in:
tongchenfei
2021-03-08 14:54:41 +08:00
parent 79638fac6f
commit 781c13ff7e
2 changed files with 103 additions and 19 deletions

View File

@@ -665,7 +665,7 @@ public class MockIntentHandler implements IntentHandler {
JSONObject jo = new JSONObject( line );
MarkerServiceHandler.getApis().getMapServiceApi().getMapUIController().syncLocation2Map( jo );
Log.i( "mock-timer-loc", "cost " + ( System.currentTimeMillis() - start ) + "ms" );
mLocationMockHandler.sendEmptyMessageDelayed( 1, 50L );
mLocationMockHandler.sendEmptyMessageDelayed( 1, 100L );
return true;
}
@@ -688,6 +688,8 @@ public class MockIntentHandler implements IntentHandler {
// double[] coor = CoordinateUtils.transformWgsToGcj( cloudRoadData.getLat(), cloudRoadData.getLon() );
// cloudRoadData.setLon( coor[0] );
// cloudRoadData.setLat( coor[1] );
cloudRoadData.setWgslat(cloudRoadData.getLat());
cloudRoadData.setWgslon(cloudRoadData.getLon());
allList.add( cloudRoadData );
data.setAllList( allList );