Add comments on MapLibre example for ZXY urls; PR template (#417)

This commit is contained in:
Brandon Liu
2024-06-28 11:32:43 +02:00
committed by GitHub
parent af3c2e3d62
commit 59ab30d68c
2 changed files with 4 additions and 0 deletions

1
.github/pull_request_template.md vendored Normal file
View File

@@ -0,0 +1 @@
- [ ] Please do not open PRs for new features if you're a first time contributor; first open an issue to confirm that the new feature is appropriate.

View File

@@ -39,6 +39,9 @@
sources: {
"example_source": {
type: "vector",
// For standard Z/X/Y tile APIs or Z/X/Y URLs served from go-pmtiles, replace "url" with "tiles" and remove all the pmtiles-related client code.
// tiles: ["https://example.com/{z}/[x}/{y}.mvt"],
// see https://maplibre.org/maplibre-style-spec/sources/#vector
url: "pmtiles://" + PMTILES_URL,
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
}