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>2022-07-08 09:58:48 +0200
commit313aefcf470df2fe3ad660e568aa8cac308dfcae (patch)
tree2e0ba9944cdc7d9d243cc65c513f772ffe7d937a /ishtar_common/templates
parent6a8dc71f4381c5b6b78dc23105ec5cdc3dc64dfb (diff)
downloadIshtar-313aefcf470df2fe3ad660e568aa8cac308dfcae.tar.bz2
Ishtar-313aefcf470df2fe3ad660e568aa8cac308dfcae.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 %}