新增snapshot多线程执行
This commit is contained in:
@@ -57,6 +57,7 @@ import com.zhidaoauto.map.sdk.open.marker.MarkerOptions;
|
||||
import com.zhidaoauto.map.sdk.open.marker.MultiPointOverlayOptions;
|
||||
import com.zhidaoauto.map.sdk.open.marker.OnInfoWindowClickListener;
|
||||
import com.zhidaoauto.map.sdk.open.marker.OnMarkClickListener;
|
||||
import com.zhidaoauto.map.sdk.open.poyline.PolylineOptions;
|
||||
import com.zhidaoauto.map.sdk.open.query.LonLatPoint;
|
||||
import com.zhidaoauto.map.sdk.open.tools.MapTools;
|
||||
import com.zhidaoauto.map.sdk.open.view.MapAutoView;
|
||||
@@ -1020,7 +1021,7 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private float lastRoadId;
|
||||
@Override
|
||||
public double[] matchRoad( double lon, double lat, double angle, boolean isGpsLocation, boolean isRTK ) {
|
||||
double wgs[] = CoordinateUtils.transformGcj02toWgs84( lat, lon );
|
||||
@@ -1032,19 +1033,29 @@ public class AMapViewWrapper implements IMogoMapView,
|
||||
// return CoordinateUtils.transformWgsToGcj( matchedPoint[1], matchedPoint[0] );
|
||||
|
||||
matchedPoint = CoordinateUtils.transformWgsToGcj( matchedPoint[1], matchedPoint[0] );
|
||||
MarkerOptions options
|
||||
= new MarkerOptions();
|
||||
options.markerIcon( R.drawable.red )
|
||||
.position( new LonLatPoint( matchedPoint[0], matchedPoint[1] ) )
|
||||
.setGps( false );
|
||||
mMapView.getMapAutoViewHelper().addMarker( options );
|
||||
MarkerOptions options2 = new MarkerOptions();
|
||||
options2.markerIcon( R.drawable.blue )
|
||||
.position( new LonLatPoint( lon, lat ) )
|
||||
.setGps( true );
|
||||
mMapView.getMapAutoViewHelper().addMarker( options2 );
|
||||
|
||||
// MarkerOptions options
|
||||
// = new MarkerOptions();
|
||||
// options.markerIcon( R.drawable.red )
|
||||
// .position( new LonLatPoint( matchedPoint[0], matchedPoint[1] ) )
|
||||
// .setGps( false );
|
||||
// mMapView.getMapAutoViewHelper().addMarker( options );
|
||||
//
|
||||
// MarkerOptions options2 = new MarkerOptions();
|
||||
// options2.markerIcon( R.drawable.blue )
|
||||
// .position( new LonLatPoint( lon, lat ) )
|
||||
// .setGps( true );
|
||||
// mMapView.getMapAutoViewHelper().addMarker( options2 );
|
||||
|
||||
// if(lastRoadId != singlePointRoadInfo.getRoadId()) {
|
||||
// lastRoadId = singlePointRoadInfo.getRoadId();
|
||||
// PolylineOptions lineOptions = new PolylineOptions();
|
||||
// lineOptions.setGps(true)
|
||||
// .lonLatPoints(singlePointRoadInfo.getCoords())
|
||||
// .color(Color.RED)
|
||||
// .lineWidth(10);
|
||||
// mMapView.getMapAutoViewHelper().drawLine(lineOptions);
|
||||
// }
|
||||
return matchedPoint;
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user