fillGeometryToFeatureGeometry static method

List<List<List<double>>> fillGeometryToFeatureGeometry(
  1. List<List<LatLng>> geom
)

Implementation

static List<List<List<double>>> fillGeometryToFeatureGeometry(
    List<List<LatLng>> geom) {
  final convertedFill = <List<List<double>>>[];
  for (final ring in geom) {
    final convertedRing = <List<double>>[];
    for (final coords in ring) {
      convertedRing.add([coords.longitude, coords.latitude]);
    }
    convertedFill.add(convertedRing);
  }
  return convertedFill;
}