mirror of
https://git.librezo.fr/Librezo/website.git
synced 2024-11-22 02:51:37 +01:00
16 lines
481 B
HTML
16 lines
481 B
HTML
<div id="map" class="nn"></div>
|
|
<script type="text/javascript" src="/vendor/leaflet/leaflet.js"></script>
|
|
<script type="text/javascript">
|
|
var map = L.map('map').setView([46.725, 2.834], 6);
|
|
L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
maxZoom: 10,
|
|
attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>'
|
|
}).addTo(map);
|
|
var places = [
|
|
{{body|safe}}
|
|
];
|
|
for(i in places) {
|
|
L.marker(places[i]).addTo(map);
|
|
}
|
|
</script>
|