From 955bd46f83533194d13f6c352c1e8ffefdce2dc4 Mon Sep 17 00:00:00 2001 From: Andrew Calcutt Date: Mon, 22 Jan 2024 01:18:38 -0500 Subject: [PATCH] fix: set default endpoint tilesizes Signed-off-by: Andrew Calcutt --- public/templates/data.tmpl | 2 +- public/templates/index.tmpl | 4 ++-- public/templates/viewer.tmpl | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 06d4938..c98435f 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -98,7 +98,7 @@ new L.Control.Zoom({ position: 'topright' }).addTo(map); var tile_urls = [], tile_attribution, tile_minzoom, tile_maxzoom; - var url = '{{public_url}}data/{{id}}.json' + keyParam; + var url = '{{public_url}}data/256/{{id}}.json' + keyParam; var req = new XMLHttpRequest(); req.overrideMimeType("application/json"); req.open('GET', url, true); diff --git a/public/templates/index.tmpl b/public/templates/index.tmpl index 250d056..573dff3 100644 --- a/public/templates/index.tmpl +++ b/public/templates/index.tmpl @@ -38,7 +38,7 @@ GL Style {{/if}} {{#if serving_rendered}} - {{#if serving_data}}| {{/if}}TileJSON + {{#if serving_data}}| {{/if}}TileJSON {{/if}} {{#if serving_rendered}} | WMTS @@ -81,7 +81,7 @@
identifier: {{@key}}{{#if formatted_filesize}} | size: {{formatted_filesize}}{{/if}}
type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data {{#if sourceType}} | ext: {{sourceType}}{{/if}}

- services: TileJSON + services: TileJSON {{#if xyz_link}} | XYZ diff --git a/public/templates/viewer.tmpl b/public/templates/viewer.tmpl index 82a0a37..da335e1 100644 --- a/public/templates/viewer.tmpl +++ b/public/templates/viewer.tmpl @@ -81,7 +81,7 @@ new L.Control.Zoom({ position: 'topright' }).addTo(map); var tile_urls = [], tile_attribution, tile_minzoom, tile_maxzoom; - var url = '{{public_url}}styles/{{id}}.json' + keyParam; + var url = '{{public_url}}styles/512/{{id}}.json' + keyParam; var req = new XMLHttpRequest(); req.overrideMimeType("application/json"); req.open('GET', url, true);