diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/collection.html b/runtimes/eoapi/stac/eoapi/stac/templates/collection.html index c193ebd..a3ff5d1 100644 --- a/runtimes/eoapi/stac/eoapi/stac/templates/collection.html +++ b/runtimes/eoapi/stac/eoapi/stac/templates/collection.html @@ -32,6 +32,18 @@

{% if response.description %}

{{ response.description }}

{% endif %} + {% if response.license %} +
+ {% include "icons/license.html" %} +

{{ response.license }}

+
+ {% endif %} + {% if response.extent and response.extent.temporal %} +
+ {% include "icons/clock.html" %} +

{{ response.extent.temporal.interval.0.0 or "..." }} — {{ response.extent.temporal.interval.0.1 or "..." }}

+
+ {% endif %} {% if "keywords" in response and response.keywords|length > 0 %}
{% include "icons/tag.html" %} @@ -43,6 +55,52 @@

{% endif %} + {% if response.item_assets and response.item_assets.items()|length > 0 %} +

Item Assets

+ + {% endif %} + + {% if response.renders and response.renders.items()|length > 0 %} +

Render Options

+ + {% endif %} +

Links

- {% if response.license %} -
- {% include "icons/license.html" %} -

{{ response.license }}

-
- {% endif %} - {% if response.extent and response.extent.temporal %} -
- {% include "icons/clock.html" %} -

{{ response.extent.temporal.interval.0.0 or "..." }} — {{ response.extent.temporal.interval.0.1 or "..." }}

-
- {% endif %} {% if response.extent and response.extent.spatial %}
Loading... @@ -89,7 +135,7 @@

Links

content: '' // You can customize this icon } }).setView([0, 0], 1); - + var osmLayer = new L.TileLayer( 'https://tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 18, @@ -122,12 +168,12 @@

Links

map.fitBounds(bbox_polygon.getBounds()); } } - + // Add any tilejson links as layers to the map const tileJsonLinks = collection.links.filter(link => link.rel === "tiles"); - + const overlayLayers = {}; - + if (tileJsonLinks.length > 0) { tileJsonLinks.forEach((link, index) => { fetch(link.href) @@ -139,22 +185,22 @@

Links

minZoom: tileJson.minzoom || 0, maxZoom: tileJson.maxzoom || 18 }); - + const layerName = link.title || `TileJSON Layer ${index + 1}`; overlayLayers[layerName] = tileLayer; - + // Add the first layer to the map by default if (index === 0) { tileLayer.addTo(map); } - + // Add layer control after all layers are processed if (index === tileJsonLinks.length - 1) { // Define the base layers const baseLayers = { "OpenStreetMap": osmLayer }; - + // Add the layer control to the map L.control.layers(baseLayers, overlayLayers).addTo(map); } @@ -164,7 +210,7 @@

Links

}); }); } - + // Handle fullscreen change event to resize map map.on('fullscreenchange', function() { if (map.isFullscreen()) {