Skip to content

TileJSON#1256

Merged
ingalls merged 26 commits intomainfrom
tilejson
Feb 16, 2026
Merged

TileJSON#1256
ingalls merged 26 commits intomainfrom
tilejson

Conversation

@ingalls
Copy link
Member

@ingalls ingalls commented Feb 14, 2026

Context

  • 🚀 Improve the basemap database schema to seperate out basemap type specific fields into their own tables
  • 🎉 Support a tilejson::// to allow remote TileJSON references

@ingalls ingalls self-assigned this Feb 14, 2026
@ingalls ingalls marked this pull request as ready for review February 16, 2026 02:47
@ingalls ingalls requested a review from Copilot February 16, 2026 02:47
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the basemap/overlay system to support TileJSON-based sources (including remote TileJSON URLs) and refactors the basemap schema to separate type-specific fields into dedicated tables.

Changes:

  • Added UI support for a new “TileJSON” overlay/basemap entry mode and a read-only TileJSON details view.
  • Updated basemap backend routes/models/types to accommodate the schema split (vector/raster/terrain tables) and a new tilejson field.
  • Adjusted test fixtures to align with updated nullability for iconset/attribution.

Reviewed changes

Copilot reviewed 17 out of 20 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
api/web/src/components/util/PublicTilesSelect.vue Adds selected-tile fetching based on incoming url prop and annotates selected items with a url field.
api/web/src/components/Admin/TileJSONView.vue New component to display TileJSON-derived source details.
api/web/src/components/Admin/AdminOverlaysEdit.vue Adds “TileJSON” mode, fetches TileJSON metadata into the form, and reorganizes overlay editing around per-mode basemap objects.
api/routes/profile-overlays.ts Updates snapping availability checks and adds stricter mode_id handling for basemap/overlay modes.
api/routes/config.ts Tightens TypeScript typing for key inclusion checks.
api/routes/basemap.ts Adds URL parse error handling for TileJSON import, updates snapping filtering logic, and adds support for tilejson in schemas/responses.
api/test/*.srv.test.ts Updates expected request/response fields to use null instead of empty strings for nullable fields.
api/lib/schema.ts Splits basemap type-specific fields into basemaps_vector, basemaps_raster, and basemaps_terrain tables; adds tilejson to basemaps.
api/lib/models/Basemap.ts Implements create/read/update logic across the new per-type tables and updates list/collections queries.
api/lib/types.ts Reworks BasemapResponse shape to match the refactored model/schema.
api/migrations/* Adds new tables and introduces the tilejson column.
api/package-lock.json Bumps package version.
Files not reviewed (1)
  • api/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 70.55215% with 96 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
api/lib/models/Basemap.ts 71.80% 51 Missing and 2 partials ⚠️
api/routes/basemap.ts 35.18% 35 Missing ⚠️
api/routes/profile-overlays.ts 38.46% 8 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ingalls ingalls merged commit c8cf4a5 into main Feb 16, 2026
12 checks passed
@ingalls ingalls deleted the tilejson branch February 16, 2026 15:04
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