2019-02-14 16:43:07 +01:00
|
|
|
{% extends "layout.html" %}
|
2019-02-14 18:45:24 +01:00
|
|
|
{% set active_page = "map" -%}
|
2019-02-14 16:43:07 +01:00
|
|
|
|
|
|
|
{% import "utils.html" as util %}
|
2019-02-14 18:45:24 +01:00
|
|
|
|
|
|
|
{% block container %}
|
2019-05-30 08:29:08 +02:00
|
|
|
<div id="mapid" class="large-map"></div>
|
2019-02-14 18:45:24 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
2019-02-14 16:43:07 +01:00
|
|
|
{% block styles %}
|
|
|
|
{{ super() }}
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="{{ url_for('static', filename='css/leaflet.css') }}">
|
2019-02-14 18:45:24 +01:00
|
|
|
<link rel="stylesheet" href="{{url_for('static', filename='css/map.css')}}">
|
|
|
|
|
2019-02-14 16:43:07 +01:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
|
|
|
{{super()}}
|
2019-02-14 18:45:24 +01:00
|
|
|
<script src="{{ url_for('static', filename='js/leaflet.js')}}"></script>
|
2019-04-04 20:41:43 +02:00
|
|
|
<script src="{{ url_for('static', filename='js/map.js' ) }}"></script>
|
2019-02-14 18:45:24 +01:00
|
|
|
<script>
|
2020-02-29 17:23:20 +01:00
|
|
|
let locations = [];
|
2019-02-14 18:45:24 +01:00
|
|
|
|
2020-02-29 17:23:20 +01:00
|
|
|
{% for loc in locations -%}
|
|
|
|
{% if loc.address %}
|
|
|
|
locations.push({
|
|
|
|
"address": "{{loc.address}}",
|
|
|
|
"name": "{{loc.name}}",
|
|
|
|
"url": "{{ url_for('general_bp.location', location_id=loc.id) }}"
|
|
|
|
});
|
|
|
|
{% endif %}
|
|
|
|
{%- endfor %}
|
2019-04-06 19:05:41 +02:00
|
|
|
|
2020-02-29 17:23:20 +01:00
|
|
|
map.setView([51.0231119, 3.7102741], 14);
|
2019-02-14 19:17:02 +01:00
|
|
|
|
2020-02-29 17:23:20 +01:00
|
|
|
loadmap(locations);
|
2019-02-14 18:45:24 +01:00
|
|
|
</script>
|
2019-04-04 20:41:43 +02:00
|
|
|
{% endblock %}
|