dev
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
package com.mogo.map;
|
||||
|
||||
import android.content.Context;
|
||||
import android.os.Bundle;
|
||||
import android.util.AttributeSet;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
import com.amap.api.navi.AMapNaviView;
|
||||
import com.mogo.map.amap.AMapNaviViewWrapper;
|
||||
import com.mogo.map.impl.amap.AMapBaseMapView;
|
||||
|
||||
|
||||
/**
|
||||
* @author congtaowang
|
||||
@@ -14,7 +15,7 @@ import com.mogo.map.amap.AMapNaviViewWrapper;
|
||||
* <p>
|
||||
* 地图实例
|
||||
*/
|
||||
public class MogoMapView extends MogoBaseMapView {
|
||||
public class MogoMapView extends AMapBaseMapView implements ILifeCycle {
|
||||
|
||||
public MogoMapView( Context context ) {
|
||||
super( context );
|
||||
@@ -29,7 +30,42 @@ public class MogoMapView extends MogoBaseMapView {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected IMogoMapView createMapView( Context context ) {
|
||||
return new AMapNaviViewWrapper( new AMapNaviView( context ) );
|
||||
public IMogoMap getMap() {
|
||||
return super.getMap();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCreate( Bundle bundle ) {
|
||||
super.onCreate( bundle );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onResume() {
|
||||
super.onResume();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onPause() {
|
||||
super.onPause();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onSaveInstanceState( Bundle outState ) {
|
||||
super.onSaveInstanceState( outState );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLowMemory() {
|
||||
super.onLowMemory();
|
||||
}
|
||||
|
||||
@Override
|
||||
public IMogoMapView getMapView() {
|
||||
return super.getMapView();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user