trancen
|
b506ea6139
|
fix(earthquakes): Revert to standard [lat, lon] format matching other app markers
ANALYSIS: All other markers in the app (DE, DX, Sun, Moon, POTA, etc.) use
standard Leaflet [latitude, longitude] format:
- L.marker([deLocation.lat, deLocation.lon])
- L.marker([sunPos.lat, sunPos.lon])
- etc.
The earthquake layer MUST use the same format for consistency.
Changes:
- Reverted L.marker([lon, lat]) → L.marker([lat, lon])
- Reverted L.circle([lon, lat]) → L.circle([lat, lon])
- Added explicit logging showing exact coordinates passed to L.marker()
- Created intermediate markerCoords variable for debugging
Test verification:
- Dominican Republic (18.0365°N, -68.625°W):
- [lat, lon] = [18.0365, -68.625] → Dominican Republic ✓
- [lon, lat] = [-68.625, 18.0365] → Indian Ocean ✗
|
2 days ago |