[2.13.0-arch-opt] change the color of jiangshiche and opt tracker
This commit is contained in:
@@ -46,6 +46,11 @@ public interface IMogoMap {
|
||||
*/
|
||||
IMogoMarker addMarker(String tag, MogoMarkerOptions options);
|
||||
|
||||
/**
|
||||
* 清除所有marker
|
||||
*/
|
||||
void clearAllMarkers();
|
||||
|
||||
/**
|
||||
* 批量更新锚点位置
|
||||
*
|
||||
|
||||
@@ -38,6 +38,11 @@ public interface IMogoMarkerManager {
|
||||
*/
|
||||
List<IMogoMarker> addMarkers(String tag, ArrayList<MogoMarkerOptions> options, boolean moveToCenter);
|
||||
|
||||
/**
|
||||
* 清除所有marker
|
||||
*/
|
||||
void clearAllMarker();
|
||||
|
||||
/**
|
||||
* 批量更新锚点位置
|
||||
*
|
||||
|
||||
@@ -3,10 +3,10 @@ package com.mogo.map;
|
||||
import android.annotation.SuppressLint;
|
||||
import android.content.Context;
|
||||
import android.graphics.Point;
|
||||
import android.util.Log;
|
||||
import android.util.Pair;
|
||||
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig;
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger;
|
||||
import com.mogo.map.center.CenterLine;
|
||||
import com.mogo.map.marker.AMapInfoWindowAdapter;
|
||||
@@ -108,6 +108,13 @@ public class AMapWrapper implements IMogoMap {
|
||||
return mogoMarker;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearAllMarkers() {
|
||||
if (sAMap != null) {
|
||||
sAMap.clearAllMarkers();
|
||||
}
|
||||
}
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
@Override
|
||||
public void updateBatchMarkerPosition(HashMap<String, MessagePad.TrackedObject> optionsArrayList) {
|
||||
@@ -119,6 +126,9 @@ public class AMapWrapper implements IMogoMap {
|
||||
MarkerSimpleData markerOptions = ObjectUtils.fromTrafficData(trackedObject);
|
||||
if (markerOptions != null) {
|
||||
markerOptionsArrayList.add(markerOptions);
|
||||
if(markerOptions.id == 65061){
|
||||
Log.i("emArrow","time :" + markerOptions.time + " , lat : " + markerOptions.lat + " , lon : " + markerOptions.lon);
|
||||
}
|
||||
}
|
||||
});
|
||||
long time = markerOptionsArrayList.get(0).getTime();
|
||||
|
||||
@@ -71,6 +71,15 @@ public class MogoMarkerManager implements IMogoMarkerManager {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void clearAllMarker() {
|
||||
try{
|
||||
MogoMap.getInstance().getMogoMap().clearAllMarkers();
|
||||
}catch (Exception e){
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateBatchMarkerPosition(HashMap<String, MessagePad.TrackedObject> optionsArrayList) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user