Mobile-UXSDK-Beta-Android icon indicating copy to clipboard operation
Mobile-UXSDK-Beta-Android copied to clipboard

Unable add the djiPolyline

Open Lucestbon opened this issue 3 years ago • 1 comments

DJIPolyline djiPolyline = mapWidget.getMap().addPolyline(new DJIPolylineOptions().addAll(_waypointList) .color(0xF7BA0B) .width(100) .visible(true) .zIndex(1000)); djiPolyline.setColor(0xF7BA0B); djiPolyline.setWidth(100); djiPolyline.setPoints(_waypointList); djiPolyline.setZIndex(1000);

I worve the code ,but these statements did not respond, and no lines appeared on the map. Could you tell me what caused it?

Lucestbon avatar May 09 '22 06:05 Lucestbon

I can say with certainty that DJIPolyline works when sent correct parameter.

You mentioned that line doesn't appear but is the return value null? Is there an exception?

One thing to keep in mind, calls like this must not be placed until the OnMapReadyListener callback is called.

kenargo avatar Jun 28 '22 21:06 kenargo