Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMTiles URLs in MapLibre are not valid URLs #509

Open
bdon opened this issue Jan 6, 2025 · 0 comments
Open

PMTiles URLs in MapLibre are not valid URLs #509

bdon opened this issue Jan 6, 2025 · 0 comments

Comments

@bdon
Copy link
Member

bdon commented Jan 6, 2025

Currently the PMTiles URLs in MapLibre look like this:

pmtiles://https://example.com/tiles.pmtiles

These cannot be parsed by URL parsers correctly.

We could instead change it to this:

pmtiles+https://example.com/tiles.pmtiles
pmtiles+http://example.com/tiles.pmtiles

This would require changing the addProtocol call, using two for HTTP and HTTPS.

maplibregl.addProtocol("pmtiles+http",protocol.http);
maplibregl.addProtocol("pmtiles+https",protocol.https);
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

No branches or pull requests

1 participant