[3.4.0-map-sdk] wait to finish
This commit is contained in:
@@ -28,17 +28,17 @@ public abstract class MogoBaseMapView extends FrameLayout implements ILifeCycle
|
||||
|
||||
public MogoBaseMapView( Context context, @Nullable AttributeSet attrs, int defStyleAttr ) {
|
||||
super( context, attrs, defStyleAttr );
|
||||
init( context );
|
||||
init( context,attrs );
|
||||
}
|
||||
|
||||
private void init( Context context ) {
|
||||
addMapView( context );
|
||||
private void init( Context context, AttributeSet attrs) {
|
||||
addMapView( context, attrs );
|
||||
if (mMapView != null){
|
||||
MogoMap.Companion.getMapInstance().initInstance( mMapView.getMap() , getInstanceTag());
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract void addMapView( Context context );
|
||||
protected abstract void addMapView( Context context , AttributeSet attrs);
|
||||
|
||||
protected abstract String getInstanceTag();
|
||||
|
||||
@@ -85,7 +85,7 @@ public abstract class MogoBaseMapView extends FrameLayout implements ILifeCycle
|
||||
}
|
||||
}
|
||||
|
||||
public IMogoMap getMap() {
|
||||
protected IMogoMap getMap() {
|
||||
if ( mMapView != null ) {
|
||||
return mMapView.getMap();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user