linearCoordinates property
Property that defines the line linear coordinates
according to its current coordinates.
Example
LineEntity line = LineEntity(
...
coordinates: [
{
'lng': 32,
'lat': -74,
'altitude': 0,
},
{
'lng': 34,
'lat': -78,
'altitude': 0,
},
],
...
)
line.linearCoordinates => '32,-74,0 34,-78,0'
Implementation
String get linearCoordinates {
String coords = coordinates
.map((coord) => '${coord['lng']},${coord['lat']},${coord['altitude']}')
.join(' ');
return coords;
}