抽离小地图访问到MoGoEagleEye.core.mogo-core-function-call
Signed-off-by: 董宏宇 <martindhy@gmail.com>
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.mogo.eagle.core.function.call.map;
|
||||
|
||||
import com.mogo.eagle.core.data.map.MogoLatLng;
|
||||
import com.mogo.eagle.core.function.api.map.smp.IMogoSmallMapProvider;
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase;
|
||||
import com.mogo.service.MogoServicePaths;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author xiaoyuzhou
|
||||
* @date 2021/9/17 6:15 下午
|
||||
*/
|
||||
public class CallerSmpManager extends CallerBase {
|
||||
private static IMogoSmallMapProvider getMogoSmallMapProvider() {
|
||||
return getApiInstance(IMogoSmallMapProvider.class, MogoServicePaths.PATH_SMALL_MAP);
|
||||
}
|
||||
|
||||
/**
|
||||
* 绘制路径线
|
||||
*/
|
||||
public static void drawablePolyline(List<MogoLatLng> coordinates) {
|
||||
getMogoSmallMapProvider().drawablePolyline(coordinates);
|
||||
}
|
||||
|
||||
/**
|
||||
* 清除路径线
|
||||
*/
|
||||
public static void clearPolyline() {
|
||||
getMogoSmallMapProvider().clearPolyline();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user