add switch map logic

This commit is contained in:
wangcongtao
2020-06-17 17:56:43 +08:00
parent a725526c2e
commit 96a7af2ca2
25 changed files with 218 additions and 66 deletions

View File

@@ -7,6 +7,7 @@ import androidx.annotation.Nullable;
import com.amap.api.navi.AMapNaviView;
import com.mogo.map.IMogoMapView;
import com.mogo.map.IMogoMapViewCreator;
import com.mogo.map.MogoBaseMapView;
/**
@@ -15,22 +16,10 @@ import com.mogo.map.MogoBaseMapView;
* <p>
* 描述
*/
public class AMapBaseMapView extends MogoBaseMapView {
public AMapBaseMapView( Context context ) {
super( context );
}
public AMapBaseMapView( Context context, @Nullable AttributeSet attrs ) {
super( context, attrs );
}
public AMapBaseMapView( Context context, @Nullable AttributeSet attrs, int defStyleAttr ) {
super( context, attrs, defStyleAttr );
}
public class AMapBaseMapView implements IMogoMapViewCreator {
@Override
protected IMogoMapView createMapView( Context context ) {
public IMogoMapView create( Context context ) {
return new AMapNaviViewWrapper( new AMapNaviView( context ) );
}
}