better rendering

This commit is contained in:
fred 2023-09-01 03:50:04 +02:00
parent 2097a6fca7
commit c1c8fb6a62
2 changed files with 13 additions and 5 deletions

View File

@ -17,5 +17,5 @@ You receive an access to this crypto landing recorded into IPFS
Get Friends.
Explore Trust.
https://ipfs.asycn.io/ipfs/QmcNU2krdHogvxUkERf52roFbX8iVb1i11HSwRFjFf3QVm/
https://ipfs.copylaradio.com/ipfs/QmcNU2krdHogvxUkERf52roFbX8iVb1i11HSwRFjFf3QVm/
Enjoy the visit.

View File

@ -3,10 +3,18 @@
<head>
<title>UPlanet Map</title>
<link rel="stylesheet" href="leaflet.css" />
<style>
.map-container {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
</style>
</head>
<body>
<div id="map" style="width: 100%; height: 100vh;"></div>
<div id="map" class="map-container"></div>
<br>
<script src="leaflet.js"></script>
@ -88,8 +96,8 @@
//~ maxZoom: 18
//~ }).addTo(map);
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: 'U Planet'
const tileLayer = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: `U Planet crypto commons | Astroport | ${southWestLat} : ${southWestLon}`
}).addTo(map);
</script>