mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-12-16 21:51:55 +03:00
7540e57dd8
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
42 lines
No EOL
1.4 KiB
HTML
42 lines
No EOL
1.4 KiB
HTML
<!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;
|
|
|
|
const urlParams = new URLSearchParams(queryString);
|
|
var locationLat = urlParams.get('locationLat')
|
|
var locationLon = urlParams.get('locationLon')
|
|
var locationGeoLink = urlParams.get('locationGeoLink')
|
|
var mapProviderUrl = urlParams.get('mapProviderUrl')
|
|
var mapProviderAttribution = urlParams.get('mapProviderAttribution')
|
|
|
|
var map = L.map('map', {
|
|
zoomControl: false,
|
|
scrollWheelZoom: false
|
|
}).setView([locationLat, locationLon], 13);
|
|
map.dragging.disable();
|
|
|
|
L.tileLayer(mapProviderUrl, {
|
|
attribution: '© ' + mapProviderAttribution
|
|
}).addTo(map);
|
|
|
|
L.marker([locationLat, locationLon]).addTo(map);
|
|
</script>
|
|
</body>
|
|
</html> |