-
Notifications
You must be signed in to change notification settings - Fork 540
Closed
Description
When drawing a line onto the map as a line layer from a GeoJSON with MultiLineString geometry, the parameters for line-join and line-cap are not being applied on iOS, they work fine on Android. As far as I know this issue also applies to a simple LineString.
Is this a known problem?
Here is how I apply the GeoJSON:
Map<String, dynamic> featureCollection = {
'type': 'FeatureCollection',
'features': [
{
'type': 'Feature',
'properties': {},
'geometry': {'type': 'MultiLineString', 'coordinates': [[[lon1, lat1], [lon2, lat2]], [[lon3, lat3], [lon4, lat4], [lon5, lat5]]]}
}
]
};
String geojson = jsonEncode(featureCollection);
final color = Color(0xFF008AA8);
mapController.addSource(sourceId, geojson)
mapController.addLineLayer(
sourceId,
layerId,
{
'line-width':
'["interpolate", ["linear"], ["zoom"], 10.0, 10.0, 20.0, 20.0]',
'line-color': '["rgb", ${color.red}, ${color.green}, ${color.blue}]',
'line-cap': 'round',
'line-join': 'round'
},
beforeId: myBeforeId);
Metadata
Metadata
Assignees
Labels
No labels