summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorQuentinAndre <quentin.andre@imt-atlantique.net>2021-08-07 01:23:16 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2021-10-25 12:06:02 +0200
commit5124549dd86b3a4522cc953768a93e4dcce1a89c (patch)
treeba8aedfa4f07511f11ce49fb60f1b656104c7ccb /ishtar_common/templates
parent8eeb37c0648690e4ffca7234b710e44be4359b20 (diff)
downloadIshtar-5124549dd86b3a4522cc953768a93e4dcce1a89c.tar.bz2
Ishtar-5124549dd86b3a4522cc953768a93e4dcce1a89c.zip
PR for peer review
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_geo_items.html7
-rw-r--r--ishtar_common/templates/ishtar/blocks/sheet_simple_map.html4
2 files changed, 8 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html
index 36fbabfcf..99fc7b866 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_geo_items.html
@@ -24,9 +24,9 @@
</dl>
<script>
var hide_get_polygons = function() {
- const disp = $("#display-geo-items");
- const get_poly = $("#get-polygons");
- const label = $("#label-get-polygons");
+ var disp = $("#display-geo-items");
+ var get_poly = $("#get-polygons");
+ var label = $("#label-get-polygons");
get_poly.hide();
label.hide();
disp.change( function () {
@@ -38,6 +38,7 @@ var hide_get_polygons = function() {
})
}
hide_get_polygons();
+
</script>
{% endif %}
{% endif %} \ No newline at end of file
diff --git a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html
index b4e669a70..e8a33ae68 100644
--- a/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html
+++ b/ishtar_common/templates/ishtar/blocks/sheet_simple_map.html
@@ -53,6 +53,10 @@ get_polygons.change( function () {
disp_map();
display_geo_items(disp.val(), get_polygons.val());
})
+console.log('points with base points');
+display_associated_points("map-{{window_id}}-{{geo_item.SLUG}}-{{geo_item.pk}}",
+ {{geo_item.point_2d_geojson|safe}}, "{{geo_item.SLUG}}");
+
{% endif %}
</script>
{% endif %}