Skip to content

Conversation

@peachwerks
Copy link

Updated src/components/CoordinateInput.jsx to output the according to MapBox format [longitude, latitude]

- Fix viewport update to correctly destructure [lat, lng] from parsed coordinates
- Ensures latitude and longitude are correctly assigned when updating viewport
- Change return format from [lat, lng] to [lng, lat] to match expected coordinate format for mapbox
- Update destructuring to [firstLng, firstLat] to match new return format
@peachwerks peachwerks closed this Jan 3, 2026
@peachwerks peachwerks reopened this Jan 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant