diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-09-10 18:09:22 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-12-12 12:23:18 +0100 |
commit | 56f277c4a1bab6e5b5513fc56cf2f40518d460e2 (patch) | |
tree | d9431fccf5508b2b3fb30b77eba2a065c0c74d8e /ishtar_common/templates | |
parent | fa7fb67af46797af06f91dd3257c219bcd55ee84 (diff) | |
download | Ishtar-56f277c4a1bab6e5b5513fc56cf2f40518d460e2.tar.bz2 Ishtar-56f277c4a1bab6e5b5513fc56cf2f40518d460e2.zip |
Geo: fix zoom to extent - fix item counts
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r-- | ishtar_common/templates/ishtar/blocks/sheet_map.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_map.html b/ishtar_common/templates/ishtar/blocks/sheet_map.html index 4a380ed13..954a7337d 100644 --- a/ishtar_common/templates/ishtar/blocks/sheet_map.html +++ b/ishtar_common/templates/ishtar/blocks/sheet_map.html @@ -47,8 +47,9 @@ const refresh_map_{{geo_item.SLUG}}_{{geo_item.pk}} = function(first_init) { let url{% if geo_item.SLUG == "operation" or geo_item.SLUG == "contextrecord" %} = "{% url 'api-get-geo' %}"{% endif %}; let attrs{% if geo_item.SLUG == "operation" %} = {"operation_id": "{{geo_item.pk}}"}{% elif geo_item.SLUG == "contextrecord" %} = {"context_record_id": "{{geo_item.pk}}"}{% endif %}; refresh_map(idx, geodata_list, url, attrs); - display_lines_and_polys("map-{{window_id}}-" + idx, _geo_other[idx], first_init); - display_points("map-{{window_id}}-" + idx, _geo_points[idx], first_init); + display_lines_and_polys("map-{{window_id}}-" + idx, _geo_other[idx]); + display_points("map-{{window_id}}-" + idx, _geo_points[idx]); + if (first_init) zoom_to_extent("map-{{window_id}}-" + idx); } const display_map_{{geo_item.SLUG}}_{{geo_item.pk}} = function() { |