Pass arrays to polylines, polygons and circles. All positions are latitude first, and circle radius is in meters. Replace the relevant data to redraw a shape. Use polygon ring arrays for holes. Shapes are independent of geojson, so they can coexist.
Shape
MapLibre options supported by the wrapper
Line
color, weight, opacity, dashArray
Polygon / circle
color, weight, fill, fillColor, fillOpacity
Leaflet accepts its native shape options. MapLibre translates only the documented subset; Leaflet callbacks/plugins do not carry over. MapLibre circles are geodesic polygon approximations. The dashed connection in the example is supplied geometry, not a route computed by Neshan.