owl-map/templates/map.html

46 lines
1.7 KiB
HTML
Raw Normal View History

2021-05-07 17:46:47 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
2021-06-15 00:08:07 +02:00
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Wikidata items linked to OSM</title>
2023-05-13 15:01:28 +02:00
<!--
<link rel="stylesheet" href="https://unpkg.com/bootstrap@5.1.3/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.8.0/dist/leaflet.css">
<link rel="stylesheet" href="https://unpkg.com/fork-awesome@1.2.0/css/fork-awesome.min.css">
2021-06-15 00:08:07 +02:00
<link rel="stylesheet" href="https://unpkg.com/leaflet-extra-markers@1.2.1/dist/css/leaflet.extra-markers.min.css">
2023-05-13 15:01:28 +02:00
-->
<link rel="stylesheet" href="{{ url_for("static", filename="frontend/style.css") }}">
2021-05-07 17:46:47 +02:00
</head>
2021-07-14 15:57:21 +02:00
{% from "navbar.html" import navbar with context %}
2021-05-07 17:46:47 +02:00
<body>
2021-07-14 15:57:21 +02:00
{% block nav %}{{ navbar() }}{% endblock %}
2021-06-15 00:08:07 +02:00
<div id="app"></div>
2021-05-07 17:46:47 +02:00
2023-05-13 15:01:28 +02:00
<!-- <script src="https://unpkg.com/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" crossorigin="anonymous"></script> -->
2021-06-15 00:08:07 +02:00
<script type="module">
2023-05-13 15:01:28 +02:00
import main from {{ url_for('static', filename='frontend/owl.es.js') | tojson }};
2021-05-07 17:46:47 +02:00
2021-06-15 00:08:07 +02:00
const props = {
startLat: {{ lat }},
startLon: {{ lon }},
startZoom: {{ zoom }},
2023-05-13 15:01:28 +02:00
startRadius: {{ (radius or None) | tojson }},
startItem: {{ (qid or None) | tojson }},
startItemTypeFilter: {{ (item_type_filter or []) | tojson }},
2021-07-16 09:59:06 +02:00
defaultComment: {{ config.DEFAULT_COMMENT | tojson }},
2021-06-17 19:12:07 +02:00
username: {{ username | tojson }},
2021-07-11 17:18:45 +02:00
startMode: {{ mode | tojson }},
q: {{ q | tojson }},
2021-10-09 13:00:21 +02:00
// mockUpload: {{ g.user.is_authenticated and g.user.mock_upload | tojson }},
mockUpload: false,
2021-06-15 00:08:07 +02:00
};
2021-05-15 16:07:29 +02:00
2023-05-13 15:01:28 +02:00
main(props);
2021-05-07 17:46:47 +02:00
</script>
</body>
</html>