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-09-01 12:36:46 +0200
commiteaee32ea5763a10b31f2e6daf59b3bed9a55cba9 (patch)
treedc821f50994ea4ae807c1e509155fd56a32d356a /ishtar_common/templates
parentdccb0b5be17050731b352e8a7e422f31426cf884 (diff)
downloadIshtar-eaee32ea5763a10b31f2e6daf59b3bed9a55cba9.tar.bz2
Ishtar-eaee32ea5763a10b31f2e6daf59b3bed9a55cba9.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 %}