Skip to content

UI coordinate input lat lng function output#56

Open
peachwerks wants to merge 3 commits into
jhackshaw:masterfrom
peachwerks:ui-coordinate-input-lat-lng-function-output
Open

UI coordinate input lat lng function output#56
peachwerks wants to merge 3 commits into
jhackshaw:masterfrom
peachwerks:ui-coordinate-input-lat-lng-function-output

Conversation

@peachwerks
Copy link
Copy Markdown

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