Closed MrLongg71 closed 1 year ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Hi, try something like this:
final fills = {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"id": 15,
"properties": <String, dynamic>{},
"geometry": geometry,
},
],
};
// Add new source and lineLayer
await mapController.addSource(
"fills", GeojsonSourceProperties(data: fills));
await mapController.addLineLayer(
"fills",
"lines",
LineLayerProperties(
lineDasharray: [
Expressions.literal,
[1, 2, 1]
],
lineColor: Colors.blue.toHexStringRGB(),
lineCap: "round",
lineJoin: "round",
lineWidth: 2,
),
);
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
How to draw a dotted line like this image:
thanks!!!