Removing markers or polylines from map (DJIMap)
bbenson09 opened this issue · 3 comments
bbenson09 commented
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
.addPolyline(<polylineOptions) returns a DJIPolyline instance which contains a remove() function. Is that what you are looking for?
huhuanhuan commented
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
Ok, understood. Thank you!