biketrack-plainjs/map.js

20 lines
519 B
JavaScript
Raw Normal View History

2022-07-18 15:18:07 +02:00
2022-07-18 16:53:53 +02:00
2022-07-18 15:18:07 +02:00
var map = L.map('map').setView([49.416075235, 8.6722049], 13);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
zoom: 44,
attribution: '© OpenStreetMap'
2022-07-18 16:53:53 +02:00
}).addTo(map)
2022-07-18 15:18:07 +02:00
2022-07-18 16:53:53 +02:00
//L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png').addTo(map);
2022-07-18 15:18:07 +02:00
//var marker = L.marker([49.41607523,8.67220049]).addTo(map);
2022-07-18 16:53:53 +02:00
//var polyline = L.polyline(newArray, {color: 'red'}).addTo(map);
//map.fitBounds(polyline.getBounds());
2022-07-18 15:18:07 +02:00