online car smooth move (modify)
This commit is contained in:
@@ -1,19 +1,21 @@
|
||||
package com.mogo.module.common.entity;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Created by ihoudf on 2020-04-16.
|
||||
**/
|
||||
public class MarkerCarPois {
|
||||
|
||||
private double[] coordinates;
|
||||
private List coordinates;
|
||||
private double angle; // 车头角度
|
||||
private String adcode;
|
||||
|
||||
public double[] getCoordinates() {
|
||||
public List getCoordinates() {
|
||||
return coordinates;
|
||||
}
|
||||
|
||||
public void setCoordinates(double[] coordinates) {
|
||||
public void setCoordinates(List coordinates) {
|
||||
this.coordinates = coordinates;
|
||||
}
|
||||
|
||||
|
||||
@@ -826,7 +826,6 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
mRefreshModel.queryOnLineCarWithRoute(mCarLatLng, false, false, new RefreshCallback() {
|
||||
@Override
|
||||
public void onSuccess(Object o) {
|
||||
Logger.i(TAG, "在线车辆" + o.toString());
|
||||
|
||||
MarkerResponse data = (MarkerResponse) o;
|
||||
MarkerCardResult result = data.getResult();
|
||||
@@ -856,8 +855,8 @@ public class MapMarkerManager implements IMogoMarkerClickListener,
|
||||
List<MogoLatLng> points = new ArrayList<>();
|
||||
for (int j = 0; j < poisList.size(); j++) {
|
||||
MarkerCarPois pois = poisList.get(j);
|
||||
double lat = pois.getCoordinates()[1];
|
||||
double lng = pois.getCoordinates()[0];
|
||||
double lat = new Double(pois.getCoordinates().get(1).toString());
|
||||
double lng = new Double(pois.getCoordinates().get(0).toString());
|
||||
points.add(new MogoLatLng(lat, lng));
|
||||
}
|
||||
points.add(new MogoLatLng(markerLocation.getLat(), markerLocation.getLon()));
|
||||
|
||||
Reference in New Issue
Block a user