mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
Add comments on MapLibre example for ZXY urls; PR template (#417)
This commit is contained in:
1
.github/pull_request_template.md
vendored
Normal file
1
.github/pull_request_template.md
vendored
Normal 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.
|
||||||
@@ -39,6 +39,9 @@
|
|||||||
sources: {
|
sources: {
|
||||||
"example_source": {
|
"example_source": {
|
||||||
type: "vector",
|
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,
|
url: "pmtiles://" + PMTILES_URL,
|
||||||
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
|
attribution: '© <a href="https://openstreetmap.org">OpenStreetMap</a>'
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user