Skip to content

Conversation

@aaronbrethorst
Copy link
Member

fixes #288

Add lat/lng query parameters to allow embedding apps (e.g., native
webviews with location permissions) to pass coordinates for initial
map centering.

  • Parse and validate lat/lng from URL search params
  • Validate coordinates are within 200km of region center
  • Center map and add location marker when valid coords provided
  • Clean params from URL after applying to avoid sharing issues
  • Add comprehensive tests for parsing and validation

* Adds Svelte MCP server
* Reformats settings.json to conform to Svelte's formatter
* Adds new simplify skill
fixes #288

Add lat/lng query parameters to allow embedding apps (e.g., native
webviews with location permissions) to pass coordinates for initial
map centering.

- Parse and validate lat/lng from URL search params
- Validate coordinates are within 200km of region center
- Center map and add location marker when valid coords provided
- Clean params from URL after applying to avoid sharing issues
- Add comprehensive tests for parsing and validation
@coveralls
Copy link

coveralls commented Jan 6, 2026

Coverage Status

coverage: 76.26% (+0.2%) from 76.076%
when pulling 19943c1 on fix-288
into edb010d on main.

@aaronbrethorst aaronbrethorst merged commit 8214dc7 into main Jan 6, 2026
4 checks passed
@aaronbrethorst aaronbrethorst deleted the fix-288 branch January 6, 2026 06:42
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.

Support URL query parameters for initial map position (lat, lng)

3 participants