fix(earthquakes): Update debug logging to show correct [lat, lon] format

The debug logging was showing the old [lon, lat] format even though
the actual marker call was using [lat, lon]. This was confusing!

Updated:
- leafletMarkerCall log now shows [lat, lon] format
- Explanation updated to say 'Standard Leaflet format'

The actual code is correct and using [lat, lon].
pull/106/head
trancen 2 days ago
parent b506ea6139
commit e92db0811e

@ -96,8 +96,8 @@ export function useLayer({ enabled = false, opacity = 0.9, map = null }) {
mag: mag,
geojson: `[lon=${coords[0]}, lat=${coords[1]}, depth=${coords[2]}]`,
extracted: `lat=${lat} (coords[1]), lon=${lon} (coords[0])`,
leafletMarkerCall: `L.marker([${lon}, ${lat}])`,
explanation: `This map uses [longitude, latitude] format (non-standard)`
leafletMarkerCall: `L.marker([${lat}, ${lon}])`,
explanation: `Standard Leaflet [latitude, longitude] format`
});
currentQuakeIds.add(quakeId);

Loading…
Cancel
Save

Powered by TurnKey Linux.