Skip to content

Map tiles - #9

Merged
JetSquirrel merged 3 commits into
mainfrom
map-tiles
Sep 30, 2026
Merged

JetSquirrel merged 3 commits into
mainfrom
map-tiles

Conversation

@JetSquirrel

Copy link
Copy Markdown
Owner

No description provided.

JetSquirrel and others added 3 commits September 30, 2026 15:25
Points on a bare graticule said where, but not where that is. A map chart
now lays OpenStreetMap raster tiles under its points, in the Web Mercator
projection the points already use, at the zoom closest to the view's scale.

The fetching follows the OSM tile policy: an identifying User-Agent, two
downloads at a time, newest view first, tiles kept on disk for a week and
reused, stale ones drawn when the network is gone, and the attribution on
the map. Decoded tiles are capped and evicted least recently drawn, and
released from the GPU atlas as they go. Offline, or with the `map_tiles`
setting `off`, the map draws as before. `map_tile_url` points it at
another {z}/{x}/{y} server.

This is the first thing the app fetches on its own; the README now says
what leaves the machine — the area being viewed, never a row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
The tiles are the one thing the app would fetch on its own, and what they
reveal — the area being viewed — is the user's to give away, not a default.
A tool that runs inside a company, or as an agent's built-in, should not
reach the public OSM servers unasked either; their policy is for light,
deliberate use. View → Online base map (OpenStreetMap) turns it on and
remembers the choice as `map_tiles`; unset reads as off.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@JetSquirrel
JetSquirrel merged commit 019bc99 into main Sep 30, 2026
JetSquirrel added a commit that referenced this pull request Sep 30, 2026
#9 and #10 landed the online base map and map size/tooltip from the same
work this branch carries, since extended here. Every conflict resolves to
this branch's side, a superset of main's; Cargo.toml keeps one `image`
dependency, which the auto-merge had doubled, and getrandom for `open`.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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