Methods

(static) latlon(latlon)

Current gis and geoJson uses [lon, lat] coords, i.e. x,y.

  • This converts these to [lat, lon], i.e. y,x as used by leaflet
  • If Array contains multiple [lon, lat] subarrays, convert them all
Parameters:
NameTypeDescription
latlonArray

Convert a [lon, lat] to [lat, lon]. If Array of Array, perform latlon on each

Returns:

[lat, lon]