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

Feature request: provide support for PMTiles format files? #212

Open
anders86755 opened this issue May 2, 2024 · 2 comments
Open

Feature request: provide support for PMTiles format files? #212

anders86755 opened this issue May 2, 2024 · 2 comments

Comments

@anders86755
Copy link

About PMTiles format : https://github.com/protomaps/PMTiles

The current initialization of demSource is as follows:

const demSource = new mlcontour.DemSource({
        url: 'https://demotiles.maplibre.org/terrain-tiles/{z}/{x}/{y}.png',
        encoding: 'mapbox',
        maxzoom: 12,
        worker: true
    });

If support for pmtiles format could be implemented, for example:

const demSource = new mlcontour.DemSource({
        url: 'pmtiles://https://xxx.xxx.com/xxx.pmtiles',
        encoding: 'mapbox',
        maxzoom: 12,
        worker: true
    });

The pmtiles format is very promising. It would be great if your plug-in could support this format.

Anyway,Thanks for this great plugin :)

@Patukas
Copy link

Patukas commented May 2, 2024

Same case here.

I am using pmtiles for dem source.

I am interested in use maplibre-contour.

Thanks.

@msbarry
Copy link
Contributor

msbarry commented May 2, 2024

Yep! This is a known limitation of the plugin. I'm working to move this functionality into maplibre so you don't need this plugin anymore: maplibre/maplibre-style-spec#583. Then you'll be able to use the pmtiles plugin for dem tiles that power a built-in contour source you can render line and label layers from.

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

3 participants