diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-06-08 15:43:24 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2023-06-08 15:46:43 +0200 |
commit | e553dcaf59aedf91aeb5d0e830ff171dce36d353 (patch) | |
tree | 95291c8eb45a4dee8278deebb89ab93a7bcaf745 | |
parent | a27b447ae2c9afc73078dd9aedd7709145e1d537 (diff) | |
download | Ishtar-e553dcaf59aedf91aeb5d0e830ff171dce36d353.tar.bz2 Ishtar-e553dcaf59aedf91aeb5d0e830ff171dce36d353.zip |
✨ Sheet: display coordinates of points
-rw-r--r-- | changelog/en/changelog_2022-06-15.md | 3 | ||||
-rw-r--r-- | changelog/fr/changelog_2023-01-25.md | 3 | ||||
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_map.html | 12 |
3 files changed, 18 insertions, 0 deletions
diff --git a/changelog/en/changelog_2022-06-15.md b/changelog/en/changelog_2022-06-15.md index 56270084d..c44e5d13f 100644 --- a/changelog/en/changelog_2022-06-15.md +++ b/changelog/en/changelog_2022-06-15.md @@ -1,6 +1,9 @@ v4.0.48 - 2023- -------------------- +### Features/improvements ### +- Sheet: display coordinates of points + ### Technical ### - Default round and round z for each spatial reference system - Do not put debug log in root path on Debian diff --git a/changelog/fr/changelog_2023-01-25.md b/changelog/fr/changelog_2023-01-25.md index 1a249b6e0..239de790b 100644 --- a/changelog/fr/changelog_2023-01-25.md +++ b/changelog/fr/changelog_2023-01-25.md @@ -1,6 +1,9 @@ v4.0.48 - 2023- -------------------- +### Fonctionnalités/améliorations ### +- Fiche : affichage des coordonnées des points + ### Technique ### - arrondi et arrondi en z par défaut pour chaque système de référence spatiale - ne pas mettre le journal de débogage dans le répertoire projet sous Debian diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html index a7db9c35f..8dbf008f8 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html @@ -25,7 +25,19 @@ > <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 coordinates.0 != None %} + <strong>{% trans "X:" %}</strong> {{coordinates.0}} ; + <strong>{% trans "Y:" %}</strong> {{coordinates.1}} + {% endif %} + {% if coordinates.2 != None %} + {% if coordinates.0 != None %}; {% endif %} + <strong>{% trans "Z:" %}</strong> {{coordinates.2}} + {% endif %} + {% endwith %}{% endif %} + </span> </li>{% endfor %} {% if geo_item.SLUG == "operation" and display_context_records %} <li> |