feat: show extension in template
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
df8861d2a3
commit
445d03d626
2 changed files with 3 additions and 1 deletions
|
|
@ -78,7 +78,7 @@
|
|||
{{/if}}
|
||||
<div class="details">
|
||||
<h3>{{name}}</h3>
|
||||
<p class="identifier">identifier: {{@key}}{{#if formatted_filesize}} | size: {{formatted_filesize}}{{/if}} | type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data</p>
|
||||
<p class="identifier">identifier: {{@key}}{{#if formatted_filesize}} | size: {{formatted_filesize}}{{/if}} | type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data {{#if extension}} | ext: {{extension}}{{/if}}</p>
|
||||
<p class="services">
|
||||
services: <a href="{{public_url}}data/{{@key}}.json{{&../key_query}}">TileJSON</a>
|
||||
{{#if wmts_link}}
|
||||
|
|
|
|||
|
|
@ -494,7 +494,9 @@ function start(opts) {
|
|||
size /= 1024;
|
||||
}
|
||||
data_.formatted_filesize = `${size.toFixed(2)} ${suffix}`;
|
||||
data_.extension = tilejson.extension;
|
||||
}
|
||||
if (tilejson.extension) {data_.extension = tilejson.extension;}
|
||||
}
|
||||
return {
|
||||
styles: Object.keys(styles).length ? styles : null,
|
||||
|
|
|
|||
Loading…
Reference in a new issue