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

Add PMTiles example with pmtiles:// protocol #1203

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

ahocevar
Copy link
Member

@ahocevar ahocevar commented Oct 7, 2024

The new example provides a generic transformRequest() function that handles pmtiles:// urls. Good for copy/paste use in applications.

@ahocevar ahocevar merged commit a4ff0cb into main Oct 7, 2024
1 check passed
@ahocevar ahocevar deleted the pmtiles-transformrequest branch October 7, 2024 09:42
@jahow
Copy link

jahow commented Oct 7, 2024

Thank you, very interesting!

"protomaps": {
"type": "vector",
"attribution": "<a href=\"https://github.com/protomaps/basemaps\">Protomaps</a> © <a href=\"https://openstreetmap.org\">OpenStreetMap</a>",
"url": "pmtiles://https://data.source.coop/protomaps/openstreetmap/tiles/v3.pmtiles"
Copy link
Member Author

Choose a reason for hiding this comment

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

This is what the transformRequest() function picks up.

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