diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/blocks/sheet_map.html')
-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() { |