Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DJIMarkerOptions Title #325

Closed
PeimanAtaei opened this issue May 7, 2024 · 5 comments
Closed

DJIMarkerOptions Title #325

PeimanAtaei opened this issue May 7, 2024 · 5 comments

Comments

@PeimanAtaei
Copy link

PeimanAtaei commented May 7, 2024

Hi DJI,

In my application, I am using Mapbox (map widget of uxsdk) and I want to add some markers with text as their number.

Would you please tell me what is the problem?

This is the code I use but no text or title apears on the map.

Capture

and this is th result:

Screenshot_20240507-131041

I need this type of marker with text :

Screenshot_20240507-131656

@dji-dev
Copy link
Contributor

dji-dev commented May 8, 2024

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

You can check out the sample code at https://github.com/dji-sdk/Mobile-SDK-Android-V5/blob/dev-sdk-main/SampleCode-V5/android-sdk-v5-sample/src/main/java/dji/sampleV5/aircraft/pages/WayPointV3Fragment.kt#L757

The sample code actually adds numbers to markers in the form of icons.

°°°

@PeimanAtaei
Copy link
Author

I exactly use this method to add marker to map but it does not have the title yet :

image

is it because of the map provider of the mapwidget ? I have selected mapbox as the provider

@dji-lyt
Copy link

dji-lyt commented May 11, 2024

We can successfully display numbers when adding markers on MapLibre. The following image shows the result of changing the map type to MapLibre in our sample code.
If you make changes to the map type, I guess it might affect the display of markers.
image

@PeimanAtaei
Copy link
Author

Thank you for your response but the problem was not because of the map type.

to be able to add title to markers when we use UXSDK, we have to use "getMarkerRes" method to create the icons of the marker. then our title will be apear on the marker.

So problem is solved.

1

3

2

@dji-dev
Copy link
Contributor

dji-dev commented May 14, 2024

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

I am pleased to inform you that your issue has been resolved.

°°°

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants