Repository navigation
feat(library): show photos and videos on a map by where they were taken - #697
Merged
Merged
Conversation
Library gets a Map view (beside Table and List, on a phone too): every asset whose file gave a GPS fix is a dot, with the Library's filters, framed to fit, on Leaflet (BSD-2) with tiles from the new Settings > Maps (OpenStreetMap by default, or none). A video's ISO 6709 location is now read at import beside a photo's EXIF GPS, and a photo anytopdf already placed counts too. GET /resources takes located and bbox (west,south,east,north) and gives each row its place, members only; MCP list_recordings takes the same. The threat model notes that the tile server sees the area looked at (N-MAP-TILES). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QFUNzy1QZy5HhKAyJxTAYJ
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.
Requested by Adeel · project thread
Description
Before: photos kept their GPS position, but nothing showed where things were taken, videos' locations weren't read, and nobody could filter by place.
After: the Library has a Map view beside Table and List, on a phone too. Every asset whose file gave a GPS fix is a dot, with the Library's filters applied, framed to fit. The map is drawn with Leaflet (BSD-2), using tiles chosen under the new Settings → Maps: OpenStreetMap by default, or none. A video's ISO 6709 location is now read at import beside a photo's EXIF GPS, and photos anytopdf already placed count too.
GET /resourcestakeslocatedandbbox(west,south,east,north) and gives each row itsplace, to members only. The MCPlist_recordingstool takes the same arguments.Motivation and Context
Personal feature plan: see photos and videos on a map.
Types of changes
!in the title)Checklist:
make hookschecks it on commit).docs/accordingly.changelog.d/photo-map.md, per build(release): changelog fragments in changelog.d/ instead of one Unreleased section #581.Done questions (AGENTS.md)
GET /resources?located&bbox=and MCPlist_recordings.maps.tile_urlin Settings → Maps (OpenStreetMap, any XYZ server, or none).make openapi, pnpm lockfile from pnpm).library.where) and the existing EXIF reader reused.Local CI:
pytest tests/api/test_photo_map.py tests/api/test_iiif.py tests/api/test_mcp.py(31 passed), ruff, mypy, jest__tests__/library*+__tests__/settings*(171 passed),tsc --noEmit,ci/check_requirements.py,ci/validate_threat_model.pyall clean; OpenAPI regenerated with no drift.Generated by Claude Code