dev
This commit is contained in:
@@ -6,17 +6,16 @@ import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.listener.IMogoMapListenerRegister;
|
||||
import com.mogo.map.location.IMogoLocationClient;
|
||||
import com.mogo.map.marker.IMogoMarker;
|
||||
import com.mogo.map.marker.MogoMarkerOptions;
|
||||
import com.mogo.map.marker.IMogoMarkerManager;
|
||||
import com.mogo.map.navi.IMogoNavi;
|
||||
import com.mogo.map.navi.IMogoNaviListener;
|
||||
import com.mogo.map.navi.IMogoNaviListenerRegister;
|
||||
import com.mogo.map.search.geo.IMogoGeoSearch;
|
||||
import com.mogo.map.search.inputtips.IMogoInputtipsSearch;
|
||||
import com.mogo.map.search.inputtips.query.MogoInputtipsQuery;
|
||||
import com.mogo.map.search.poisearch.IMogoPoiSearch;
|
||||
import com.mogo.map.search.poisearch.MogoPoiSearch;
|
||||
import com.mogo.map.search.poisearch.query.MogoPoiSearchQuery;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import com.mogo.map.uicontroller.IMogoMapUIController;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -24,7 +23,7 @@ import java.util.List;
|
||||
* <p>
|
||||
* 地图对外地接口
|
||||
*/
|
||||
public interface IMogoMapService extends IProvider, IMogoMapListenerRegister {
|
||||
public interface IMogoMapService extends IProvider, IMogoMapListenerRegister, IMogoNaviListenerRegister {
|
||||
|
||||
/**
|
||||
* 获取定位服务实例,全局唯一
|
||||
@@ -34,24 +33,6 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister {
|
||||
*/
|
||||
IMogoLocationClient getSingletonLocationClient( Context context );
|
||||
|
||||
/**
|
||||
* 添加marker
|
||||
*
|
||||
* @param tag 标识调用者
|
||||
* @param options
|
||||
* @return
|
||||
*/
|
||||
IMogoMarker addMarker( String tag, MogoMarkerOptions options );
|
||||
|
||||
/**
|
||||
* 添加多个marker
|
||||
*
|
||||
* @param tag 标识调用者
|
||||
* @param options
|
||||
* @return
|
||||
*/
|
||||
List< IMogoMarker > addMarkers( String tag, ArrayList< MogoMarkerOptions > options, boolean moveToCenter );
|
||||
|
||||
/**
|
||||
* 获取关键字搜索地址服务
|
||||
*
|
||||
@@ -70,17 +51,29 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister {
|
||||
IMogoGeoSearch getGeoSearch( Context context );
|
||||
|
||||
/**
|
||||
* 注册地图事件
|
||||
* 注册地图事件,各业务模块不用关注
|
||||
*
|
||||
* @param listener 回调事件
|
||||
*/
|
||||
void registerHostMapListener( IMogoMapListener listener );
|
||||
|
||||
/**
|
||||
* 反注册注册地图事件
|
||||
* 反注册注册地图事件,各业务模块不用关注
|
||||
*/
|
||||
void unregisterHostMapListener();
|
||||
|
||||
/**
|
||||
* 注册导航回调,各业务模块不用关注
|
||||
*
|
||||
* @param listener 回调函数
|
||||
*/
|
||||
void registerHostNaviListener( IMogoNaviListener listener );
|
||||
|
||||
/**
|
||||
* 注销导航回调,各业务模块不用关注
|
||||
*/
|
||||
void unregisterHostNaviListener();
|
||||
|
||||
/**
|
||||
* poi搜索服务
|
||||
*
|
||||
@@ -91,14 +84,19 @@ public interface IMogoMapService extends IProvider, IMogoMapListenerRegister {
|
||||
IMogoPoiSearch getPoiSearch( Context context, MogoPoiSearchQuery query );
|
||||
|
||||
/**
|
||||
* 移除某一个类、某个模块的markers
|
||||
* 获取导航操作实例
|
||||
*
|
||||
* @param tag
|
||||
* @param context
|
||||
* @return
|
||||
*/
|
||||
void removeMarkers( String tag );
|
||||
IMogoNavi getNavi( Context context );
|
||||
|
||||
/**
|
||||
* 移除地图上所有markers
|
||||
* marker 操作
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
void removeMarkers();
|
||||
IMogoMarkerManager getMarkerManager(Context context);
|
||||
|
||||
IMogoMapUIController getMapUIController();
|
||||
}
|
||||
|
||||
@@ -9,6 +9,7 @@ import androidx.fragment.app.Fragment;
|
||||
|
||||
import com.alibaba.android.arouter.facade.template.IProvider;
|
||||
import com.mogo.map.listener.IMogoMapListener;
|
||||
import com.mogo.map.navi.IMogoNaviListener;
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -75,4 +76,11 @@ public interface IMogoModuleProvider extends IProvider {
|
||||
* @return
|
||||
*/
|
||||
int getType();
|
||||
|
||||
/**
|
||||
* 导航监听
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
IMogoNaviListener getNaviListener();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user