2021-05-26 23:20:23 +03:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv='content-Type' content='text/html; charset=UTF-8' />
|
|
|
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.7.1/dist/leaflet.css" />
|
|
|
|
<style>
|
|
|
|
html, body, #map {
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
body {
|
|
|
|
padding: 0;
|
|
|
|
margin: 0;
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="map"></div>
|
|
|
|
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
|
|
<script>
|
|
|
|
|
|
|
|
var queryString = window.location.search;
|
|
|
|
queryString = queryString.substring(1);
|
2021-05-28 01:27:43 +03:00
|
|
|
var params = queryString.split(",");
|
|
|
|
var lat = params[0]
|
|
|
|
var lon = params[1]
|
2021-05-26 23:20:23 +03:00
|
|
|
|
|
|
|
|
2021-05-28 01:27:43 +03:00
|
|
|
var map = L.map('map', { zoomControl: false }).setView([lat, lon], 13);
|
2021-05-26 23:20:23 +03:00
|
|
|
map.dragging.disable();
|
|
|
|
|
|
|
|
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
|
attribution: '© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
|
|
|
}).addTo(map);
|
|
|
|
|
2021-05-28 01:27:43 +03:00
|
|
|
L.marker([lat, lon]).addTo(map);
|
2021-05-26 23:20:23 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|