getLineLatLngs method

Future<List<LatLng>> getLineLatLngs(
  1. Line line
)

Retrieves the current position of the line. This may be different from the value of line.options.geometry if the line is draggable. In that case this method provides the line's actual position, and line.options.geometry the last programmatically set position.

Implementation

Future<List<LatLng>> getLineLatLngs(Line line) async {
  assert(_lines[line.id] == line);
  final lineLatLngs = await _mapboxGlPlatform.getLineLatLngs(line);
  notifyListeners();
  return lineLatLngs;
}