dji-sdk / Mobile-SDK-Android

DJI Mobile SDK for Android: http://developer.dji.com/mobile-sdk/
Other
994 stars 581 forks source link

switch map to camera on Flight page #1310

Open 1232Ga opened 5 months ago

1232Ga commented 5 months ago

how to swap map to camera and camera to map on Flight screen page on MSDK V4 .On Unmanned Screen page.

dji-dev commented 5 months ago

Agent comment from yating.liao in Zendesk ticket #109948:

You can refer to the example code of UXSDK. The example code in the default page implements the switching logic between the map and camera views. https://github.com/dji-sdk/Mobile-UXSDK-Android/blob/master/sample/app/src/main/java/com/dji/ux/sample/CompleteWidgetActivity.java

°°°

1232Ga commented 4 months ago

how to replace mapwidget to mapbox to switch camera and map

dji-dev commented 4 months ago

Agent comment from yating.liao in Zendesk ticket #109948:

You can choose to initialize the mapwidget as mapbox when initializing it. However, the mapbox version used by mapwidget is relatively low, and msdk will no longer use mapbox maps. If you need mapbox, I recommend building a component similar to mapwidget on your own. https://developer.dji.com/api-reference/android-uilib-api/Widgets/DUXMapWidget.html?search=mapwidget&i=4&#duxmapwidget_initmapbox_inline

°°°