Skip to content

PMTiles URLs in MapLibre are not valid URLs #509

@bdon

Description

@bdon

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions