Map tiles - #9
Merged
Merged
Conversation
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
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.