coordsToLatLngs static method
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]);