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>
|
2021-05-28 13:43:56 +03:00
|
|
|
<div id="map" ></div>
|
2021-05-26 23:20:23 +03:00
|
|
|
<script src="https://unpkg.com/leaflet@1.7.1/dist/leaflet.js"></script>
|
|
|
|
<script>
|
|
|
|
var queryString = window.location.search;
|
|
|
|
|
2021-05-28 11:23:30 +03:00
|
|
|
const urlParams = new URLSearchParams(queryString);
|
2021-05-28 13:43:56 +03:00
|
|
|
var locationLat = urlParams.get('locationLat')
|
|
|
|
var locationLon = urlParams.get('locationLon')
|
|
|
|
var locationGeoLink = urlParams.get('locationGeoLink')
|
2021-05-28 11:23:30 +03:00
|
|
|
var mapProviderUrl = urlParams.get('mapProviderUrl')
|
|
|
|
var mapProviderAttribution = urlParams.get('mapProviderAttribution')
|
2021-05-26 23:20:23 +03:00
|
|
|
|
2021-05-28 13:43:56 +03:00
|
|
|
var map = L.map('map', {
|
|
|
|
zoomControl: false,
|
|
|
|
scrollWheelZoom: false
|
|
|
|
}).setView([locationLat, locationLon], 13);
|
2021-05-26 23:20:23 +03:00
|
|
|
map.dragging.disable();
|
|
|
|
|
2021-05-28 11:23:30 +03:00
|
|
|
L.tileLayer(mapProviderUrl, {
|
|
|
|
attribution: '© ' + mapProviderAttribution
|
2021-05-26 23:20:23 +03:00
|
|
|
}).addTo(map);
|
|
|
|
|
2021-05-28 13:43:56 +03:00
|
|
|
L.marker([locationLat, locationLon]).addTo(map);
|
2021-05-26 23:20:23 +03:00
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</html>
|