From f60de3830464478fff11c23e08dbdb4a177857a7 Mon Sep 17 00:00:00 2001 From: Miko Date: Sun, 13 Oct 2024 21:27:40 +0200 Subject: [PATCH 01/13] add terrain preview and elevation link --- public/resources/index.css | 2 +- public/templates/data.tmpl | 139 +++++++++++++++++++++++++----------- public/templates/index.tmpl | 25 +++++-- src/server.js | 12 ++-- src/utils.js | 10 ++- 5 files changed, 132 insertions(+), 56 deletions(-) diff --git a/public/resources/index.css b/public/resources/index.css index d18b63816..fd5f21ee3 100644 --- a/public/resources/index.css +++ b/public/resources/index.css @@ -114,7 +114,7 @@ section { } .details h3 { font-size: 18px; - margin-top: 25px; + margin-top: 5px; } .details p { padding: 0; diff --git a/public/templates/data.tmpl b/public/templates/data.tmpl index 59b0d3b35..2c4d21733 100644 --- a/public/templates/data.tmpl +++ b/public/templates/data.tmpl @@ -4,20 +4,25 @@ {{name}} - TileServer GL - {{#is_vector}} + {{#use_maplibre}} - {{/is_vector}} - {{^is_vector}} + {{/use_maplibre}} + {{^use_maplibre}} @@ -37,23 +42,22 @@ background-image: url({{public_url}}images/marker-icon.png{{&key_query}}); } - {{/is_vector}} + {{/use_maplibre}} - {{#is_vector}} + {{#use_maplibre}}

{{name}}

+ {{^is_terrain}}

+  {{/is_terrain}}
   
-  {{/is_vector}}
-  {{^is_vector}}
+  {{/use_maplibre}}
+  {{^use_maplibre}}
   

{{name}}

- {{/is_vector}} + {{/use_maplibre}} diff --git a/public/templates/index.tmpl b/public/templates/index.tmpl index d4d5be766..0edd19a52 100644 --- a/public/templates/index.tmpl +++ b/public/templates/index.tmpl @@ -6,10 +6,15 @@ TileServer GL - Server for vector and raster maps with GL styles