diff --git a/runtimes/eoapi/stac/eoapi/stac/client.py b/runtimes/eoapi/stac/eoapi/stac/client.py index e492a1b..6f43213 100644 --- a/runtimes/eoapi/stac/eoapi/stac/client.py +++ b/runtimes/eoapi/stac/eoapi/stac/client.py @@ -518,6 +518,7 @@ async def item_collection( item_collection, template_name="items", title=f"{collection_id} items", + limit=limit, ) elif output_type == MimeTypes.csv: diff --git a/runtimes/eoapi/stac/eoapi/stac/templates/items.html b/runtimes/eoapi/stac/eoapi/stac/templates/items.html index c21a404..d2f4470 100644 --- a/runtimes/eoapi/stac/eoapi/stac/templates/items.html +++ b/runtimes/eoapi/stac/eoapi/stac/templates/items.html @@ -1,4 +1,4 @@ -{% include "header.html" %} +{% extends "base.html" %} {% set show_prev_link = false %} {% set show_next_link = false %} @@ -8,13 +8,14 @@ {% set urlq = url + '?' %} {% endif %} - +{% block content %} -

Collection Items: {{ response.title or response.id }}

- -
Loading...
- -

- Number of matching items: {{ response.numberMatched }}
- Number of returned items: {{ response.numberReturned }}
-

- -
- {% for link in response.links %} - {% if link.rel == 'previous' %} -
prev
- {% endif %} - {% endfor %} -
- +

+ Collection Items: + {{ response.title or response.id }} +

+{% if response.features|length > 0 %} +
+
+ Showing {{ response.numberReturned }} of {{ response.numberMatched }} items
- {% for link in response.links %} - {% if link.rel == 'next' %} - +
+
+ + +
+ {% if response.links|length > 0 %} +
+ {% for link in response.links %} + {% if link.rel == 'prev' or link.rel == 'previous' %} + « prev + {% endif %} + {% endfor %} + {% for link in response.links %} + {% if link.rel == 'next' %} + next » + {% endif %} + {% endfor %} {% endif %} - {% endfor %} +
+
+ +
Loading...
+
-{% if response.features is defined and response.features|length > 0 %} - - - -{% for key, value in response.features.0.properties.items() %} - -{% endfor %} - - -{% for feature in response.features %} - - - {% for key, value in feature.properties.items() %} - - {% endfor %} - -{% endfor %} - -
ID{{ key }}
{{ feature.id }}{{ value }}
-{% endif %} + {% if response.features and response.features|length > 0 %} + + + + {% for key, value in response.features.0.properties.items() %} + + {% endfor %} + + + {% for feature in response.features %} + + + {% for key, value in feature.properties.items() %} + + {% endfor %} + + {% endfor %} + +
ID{{ key }}
{{ feature.id }}{{ value }}
+ {% endif %}
+{% else %} +
+

No items found

+

You need to add STAC Collections and Items; for example by following the MAXAR open data demo or other demos.

+
+{% endif %} - -{% include "footer.html" %} +{% endblock %}