From 59ab30d68c317f296540d6534e8964e51e97587c Mon Sep 17 00:00:00 2001 From: Brandon Liu Date: Fri, 28 Jun 2024 11:32:43 +0200 Subject: [PATCH] Add comments on MapLibre example for ZXY urls; PR template (#417) --- .github/pull_request_template.md | 1 + js/examples/maplibre.html | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..f5348a0 --- /dev/null +++ b/.github/pull_request_template.md @@ -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. \ No newline at end of file diff --git a/js/examples/maplibre.html b/js/examples/maplibre.html index 3a9173a..4d0d637 100644 --- a/js/examples/maplibre.html +++ b/js/examples/maplibre.html @@ -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: '© OpenStreetMap' }