Skip to content

Commit

Permalink
increasing the threshold
Browse files Browse the repository at this point in the history
  • Loading branch information
ssadhu-sl committed Jan 13, 2025
1 parent 896873b commit a191f7d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions application/templates/entity.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,9 @@

{% set is_truncated = false %}
{% if row['geometry'] %}
{% if row['geometry']|length > 1000000 %}
{% if row['geometry']|length > 100000 %}
{% set is_truncated = true %}
{% set truncated_geometry = row['geometry'][:1000000] %}
{% else %}
{% set truncated_geometry = row['geometry'] %}
{% endif %}
{% else %}
{% set truncated_geometry = "" %}
{% endif %}


Expand Down Expand Up @@ -98,7 +93,7 @@ <h1 class="govuk-heading-xl">{{ row_name }}</h1>
{% if field == 'geometry' %}
<code class ="app-code-block" id="geometry-content">
{% if row[field] is not none %}
{{ truncated_geometry }}{% if row[field]|length > 1000000 %}... <a href="javascript:void(0);" onclick="expandGeometry()">Load More</a>{% endif %}
{{ row[field][:100000] }}{% if row[field]|length > 100000 %}... <a href="javascript:void(0);" onclick="expandGeometry()">Load More</a>{% endif %}
{% endif %}
</code>
<code class ="app-code-block" id="geometry-full-content" style="display: none;">
Expand Down

0 comments on commit a191f7d

Please sign in to comment.