Skip to content

docs: maplibre v6 migration research#1

Open
garyo wants to merge 1 commit into
mainfrom
research/maplibre-v6
Open

docs: maplibre v6 migration research#1
garyo wants to merge 1 commit into
mainfrom
research/maplibre-v6

Conversation

@garyo
Copy link
Copy Markdown
Owner

@garyo garyo commented May 3, 2026

Summary

Research doc covering the impact of upgrading from maplibre-gl@5.24.0 to v6.x (currently at pre-release 6.0.0-6; stable has not shipped yet).

Risk level: Medium — no show-stoppers. Key findings:

  • WebGL 2 required (6.0.0-2): Zero exposure — Android WebView has supported WebGL 2 since API 26, which is already our minimum.
  • ESM-only distribution (6.0.0-5): Zero exposure — Vite already consumes ESM.
  • GeoJSONSource.setData second param removed (6.0.0-3): Zero exposure — none of our 35+ call sites pass a second argument.
  • {get,set}PaintProperty / {get,set}LayoutProperty type narrowing (6.0.0-1): Small effort — run bun run typecheck after bump; expect ≤5 trivial fixes (primarily "visibility" string typing).
  • @maplibre/maplibre-gl-style-spec pin (24.8.1): The main motivation for upgrading. Once on v6, all style-spec types are re-exported from maplibre-gl itself and the separate pinned dependency can be dropped. 12 files need a one-line import-source change.
  • pmtiles 4.x: No changes needed — addProtocol API is stable across v5→v6.

See docs/maplibre-v6-migration.md for the full breaking-changes table, file:line touch-point list, open questions, and suggested upgrade order.

https://claude.ai/code/session_01DLvs7r6qNfKdqmuzQF4EKr


Generated by Claude Code

Adds docs/maplibre-v6-migration.md — full impact analysis of upgrading
from maplibre-gl 5.24.0 to 6.x, covering all pre-release breaking changes,
codebase touch points with file:line references, and a suggested upgrade order.

https://claude.ai/code/session_01DLvs7r6qNfKdqmuzQF4EKr
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
pelorus-nav 1d13051 Commit Preview URL

Branch Preview URL
May 03 2026, 01:06 AM

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.

2 participants