Immutable geographic coordinate pair.
Order convention — read carefully: GeoLeaf uses { lat, lng } (latitude first). MapLibre GL uses [lng, lat] (longitude first, GeoJSON order). Always convert explicitly when passing coordinates to/from the adapter.
{ lat, lng }
[lng, lat]
// GeoLeafconst center: GeoLeafLatLng = { lat: 45.764, lng: 4.835 };// MapLibre interop (in the adapter only)const mlCenter: [number, number] = [center.lng, center.lat]; Copy
// GeoLeafconst center: GeoLeafLatLng = { lat: 45.764, lng: 4.835 };// MapLibre interop (in the adapter only)const mlCenter: [number, number] = [center.lng, center.lat];
Readonly
Latitude in decimal degrees (WGS 84). Range: −90 … +90.
Longitude in decimal degrees (WGS 84). Range: −180 … +180.
Immutable geographic coordinate pair.
Order convention — read carefully: GeoLeaf uses
{ lat, lng }(latitude first). MapLibre GL uses[lng, lat](longitude first, GeoJSON order). Always convert explicitly when passing coordinates to/from the adapter.Example