[3.4.0-map-sdk] wait to finish

This commit is contained in:
zhongchao
2023-08-25 10:16:15 +08:00
parent db342e0bfc
commit 7865da2347
40 changed files with 404 additions and 648 deletions

View File

@@ -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();
}