Mobile-SDK-Android icon indicating copy to clipboard operation
Mobile-SDK-Android copied to clipboard

switch map to camera on Flight page

Open 1232Ga opened this issue 1 year ago • 3 comments

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

1232Ga avatar Jun 18 '24 04:06 1232Ga

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

°°°

dji-dev avatar Jun 18 '24 13:06 dji-dev

how to replace mapwidget to mapbox to switch camera and map

1232Ga avatar Jun 26 '24 05:06 1232Ga

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

°°°

dji-dev avatar Jun 26 '24 10:06 dji-dev