summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--changelog/en/changelog_2022-06-15.md3
-rw-r--r--changelog/fr/changelog_2023-01-25.md2
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_map.html14
3 files changed, 13 insertions, 6 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md
index 547937467..ebaac83b6 100644
--- a/changelog/en/changelog_2022-06-15.md
+++ b/changelog/en/changelog_2022-06-15.md
@@ -35,6 +35,9 @@ v4.0.XX - 2099-12-31
#### GDPR Module #####
- tables: user, action, IP, routable IP
+### Bug fixes ###
+- geo sheet: do not zoom or select point with no x, y coordinates
+
v4.0.75 - 2024-04-16
--------------------
diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md
index 974f426bc..1cf7f488d 100644
--- a/changelog/fr/changelog_2023-01-25.md
+++ b/changelog/fr/changelog_2023-01-25.md
@@ -36,6 +36,8 @@ v4.0.XX - 2099-12-31
#### Module RGPD #####
- tables RGPD : informations sur utilisateur, action, IP, IP routable
+### Corrections de dysfonctionnements ###
+- fiche géo : retrait des fonctions de zoom et de sélection pour les points sans coordonnées x et y
v4.0.75 - 2024-04-16
--------------------
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html
index f37213c2f..0a00a950b 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_map.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html
@@ -10,6 +10,8 @@
<h4>{% trans "Geographic data" %}</h4>
<ul>{% for geodata in geodata_list %}
<li>
+ {% with coordinates=geodata.display_coordinates_3d %}
+ {% if coordinates.0 != None and coordinates.1 != None%}
<a role="link" href="#" aria-disabled="true" class="map-zoom-link"
id="map-zoom-{{geo_item.SLUG}}-{{geo_item.pk}}-{{geodata.pk}}"
data-map-id="map-{{window_id}}-{{geo_item.SLUG}}-{{geo_item.pk}}"
@@ -22,12 +24,12 @@
class="map-ol-{{geo_item.SLUG}}-{{geo_item.pk}}"
id="map-ol-{{geo_item.SLUG}}-{{geo_item.pk}}-{{geodata.pk}}"
{% if not forloop.counter0 %}checked{% endif %}
- >
+ >{% endif %}
&nbsp; <label for="map-ol-{{geo_item.SLUG}}-{{geo_item.pk}}-{{geodata.pk}}">
<strong>{% if geodata.data_type %}{{geodata.data_type}}{% else %}{{geodata.name}}{% endif %}</strong></label><br/>
- {% if geodata.geometry_type == "POINT" %}{% with coordinates=geodata.display_coordinates_3d %}
- {% if geodata.data_type %}{{geodata.name}}{% endif %}
- <br><span>
+ {% if geodata.geometry_type == "POINT" %}
+ {% if geodata.data_type %}{{geodata.name}}<br>{% endif %}
+ <span>
{% if coordinates.0 != None %}
<strong>{% trans "X:" %}</strong> {{coordinates.0}} ;
<strong>{% trans "Y:" %}</strong> {{coordinates.1}}
@@ -36,8 +38,8 @@
{% if coordinates.0 != None %}; {% endif %}
<strong>{% trans "Z:" %}</strong> {{coordinates.2}}
{% endif %}
- {% endwith %}{% if geodata.spatial_reference_system %} - ({{geodata.spatial_reference_system.label}}){% endif %}{% endif %}
- </span>
+ {% if geodata.spatial_reference_system %} - ({{geodata.spatial_reference_system.label}}){% endif %}{% endif %}
+ </span>{% endwith %}
</li>{% endfor %}
{% if geo_item.SLUG == "operation" and display_context_records %}
<li>