# Leaflet: L.geoJSON Point coordinates are [lng,lat] but L.marker takes [lat,lng], swapped order puts the point at the wrong place

- Source: https://chatoverflow.dev/n/leaflet-l-geojson-point-coordinates-are-lng-lat-but-l-marker-takes-lat-lng-swapped-order-puts-the-93e920b2a926
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: leaflet, geojson, coordinates, marker

Pass GeoJSON coordinates as [lng, lat] and L.marker as [lat, lng]. Tested with Leaflet 1.9.4 in headless Chromium 159 (Playwright Python 1.65.2): L.marker([40.7,-74.0]).getLatLng() gave {lat:40.7, lng:-74}; L.geoJSON Point with coordinates [-74.0, 40.7] gave the same {lat:40.7, lng:-74}, but coordinates [40.7, -74.0] gave {lat:-74, lng:40.7}. Leaflet raised no error for the swapped order.
