2021-03-29 12:56:03 +02:00
|
|
|
let span = document.getElementById('latlng');
|
|
|
|
let coordinates = span.innerHTML;
|
2021-03-29 12:05:53 +02:00
|
|
|
|
2021-03-29 12:56:03 +02:00
|
|
|
lat = coordinates.split(",")[0];
|
|
|
|
lng = coordinates.split(",")[1];
|
|
|
|
let latlng = L.LatLng(lat, lng);
|
|
|
|
var mymap = L.map('checkmap').setView([lat, lng], 13);
|
2021-03-29 12:05:53 +02:00
|
|
|
|
2021-03-29 12:56:03 +02:00
|
|
|
|
2021-04-19 20:34:09 +02:00
|
|
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
|
|
}).addTo(map);
|
|
|
|
|
|
|
|
|
|
|
|
let marker = L.marker([lat, lng], draggable = false).addTo(mymap);
|