[Feat]添加隐藏的高德地图

This commit is contained in:
chenfufeng
2022-06-14 11:26:24 +08:00
parent fbb2c26b79
commit ef481ae441
2 changed files with 13 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.alibaba.android.arouter.facade.annotation.Route;
import com.amap.api.maps.AMap;
import com.amap.api.maps.TextureMapView;
import com.mogo.commons.mvp.MvpFragment;
import com.mogo.eagle.core.data.constants.MoGoFragmentPaths;
import com.mogo.eagle.core.data.map.CenterLine;
@@ -39,6 +41,8 @@ public class MapFragment extends MvpFragment<MapView, MapPresenter>
private MogoMapView mMogoMapView;
private IMogoMap mMogoMap;
private TextureMapView mNaviMapView;
private AMap mAMap;
private final boolean mIsControllerByOthersStatus = false;
@@ -81,6 +85,8 @@ public class MapFragment extends MvpFragment<MapView, MapPresenter>
if (mMogoMap != null) {
mMogoMap.getUIController().showMyLocation(true);
}
mNaviMapView = findViewById(R.id.module_gaode_id_map);
mAMap = mNaviMapView.getMap();
// 添加换肤监听
CallerSkinModeListenerManager.INSTANCE.addListener(TAG, this);
}

View File

@@ -9,4 +9,11 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<com.amap.api.maps.TextureMapView
android:id="@+id/module_gaode_id_map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone"
/>
</androidx.constraintlayout.widget.ConstraintLayout>