This commit is contained in:
zhongchao
2022-11-11 18:07:24 +08:00
parent 5489eed272
commit e52ba22a56
14 changed files with 104 additions and 134 deletions

View File

@@ -3,7 +3,6 @@ package com.mogo.map.marker;
import android.content.Context;
import com.mogo.eagle.core.data.map.MogoLatLng;
import com.mogo.eagle.core.data.traffic.TrafficData;
import java.util.ArrayList;
import java.util.HashMap;
@@ -27,7 +26,7 @@ public interface IMogoMarkerManager {
* @param options
* @return
*/
IMogoMarker addMarker( String tag, MogoMarkerOptions options );
IMogoMarker addMarker(String tag, MogoMarkerOptions options);
/**
* 添加多个marker
@@ -36,20 +35,22 @@ public interface IMogoMarkerManager {
* @param options
* @return
*/
List< IMogoMarker > addMarkers( String tag, ArrayList< MogoMarkerOptions > options, boolean moveToCenter );
List<IMogoMarker> addMarkers(String tag, ArrayList<MogoMarkerOptions> options, boolean moveToCenter);
/**
* 批量更新锚点位置
*
* @param optionsArrayList 锚点集合
*/
void updateBatchMarkerPosition(HashMap<String,MessagePad.TrackedObject> optionsArrayList);
void updateBatchMarkerPosition(HashMap<String, MessagePad.TrackedObject> optionsArrayList);
/**
* 添加感知使用到的3d模型
*
* @param type
* @param modelRes
*/
String addPreVehicleModel(int type,int modelRes);
String addPreVehicleModel(int type, int modelRes);
/**
* 要移除的感知数据uuid
@@ -63,7 +64,7 @@ public interface IMogoMarkerManager {
*
* @param tag
*/
void removeMarkers( String tag );
void removeMarkers(String tag);
/**
* 移除地图上添加的所有markers
@@ -82,9 +83,10 @@ public interface IMogoMarkerManager {
/**
* 隐藏除了某些类别的所有marker {@link MogoMarkerOptions Owner}
*
* @param owner
*/
void inVisibleWithoutMarkers(String ...owner); //todo 后续需要把Owner类别统一起来基类下沉此接口为临时方案应该设计为隐藏某一类元素
void inVisibleWithoutMarkers(String... owner); //todo 后续需要把Owner类别统一起来基类下沉此接口为临时方案应该设计为隐藏某一类元素
/**
* 获取某种类型的全部marker。
@@ -92,21 +94,21 @@ public interface IMogoMarkerManager {
* @param tag 业务类型
* @return
*/
List< IMogoMarker > getMarkers( String tag );
List<IMogoMarker> getMarkers(String tag);
/**
* 获取所有类型的marker。
*
* @return
*/
Map< String, List< IMogoMarker > > getAllMarkers( );
Map<String, List<IMogoMarker>> getAllMarkers();
/**
* 仅保留指定类型的tag
*
* @param tag 需要保留的类型
*/
void removeMarkersExcept( String tag );
void removeMarkersExcept(String tag);
/**
* 添加搜索路线
@@ -116,7 +118,7 @@ public interface IMogoMarkerManager {
* @param endPoint 终点
* @param wayPoints 途经点
*/
void addRouteWay( Context context, MogoLatLng startPoint, MogoLatLng endPoint, List< MogoLatLng > wayPoints );
void addRouteWay(Context context, MogoLatLng startPoint, MogoLatLng endPoint, List<MogoLatLng> wayPoints);
/**
* 移除添加的导航预测路线