coordsToLatLngs static method

List coordsToLatLngs(
  1. List coords, [
  2. int? levelsDeep,
  3. Function? coordsToLatLng
])

Creates a multidimensional array of LatLngs from a GeoJSON coordinates array.

levelsDeep specifies the nesting level (0 is for an array of points, 1 for an array of arrays of points, etc., 0 by default).

Can use a custom coordsToLatLng function.

Implementation

external static List coordsToLatLngs(List coords,
    [int? levelsDeep, Function? coordsToLatLng]);