dji-sdk / Mobile-UXSDK-Beta-Android

Mobile Android UXSDK Beta
MIT License
96 stars 55 forks source link

Removing markers or polylines from map (DJIMap) #57

Closed bbenson09 closed 2 years ago

bbenson09 commented 2 years ago

Is there really no way to remove markers or polylines from the map? Or am I missing something...?

Only way I can see to remove markers is to clear() the map, but this is not ideal as it makes the aircraft and fly zones disappear, too.

kenargo commented 2 years ago

.addPolyline(<polylineOptions) returns a DJIPolyline instance which contains a remove() function. Is that what you are looking for?

huhuanhuan commented 2 years ago

At present, all methods based on mapbox are old. You need to rewrite and write the map control yourself, otherwise there will be many unknown restrictions

bbenson09 commented 2 years ago

Ok, understood. Thank you!