Suppression des fichiers de travail

This commit is contained in:
LC 2023-10-07 16:13:53 +02:00
parent d43619947a
commit 4c1ceb8e12
1 changed files with 0 additions and 69 deletions

View File

@ -1,69 +0,0 @@
<?php
/* création @Lionel 2019
Version du 16 juillet 2022 */
$lat = $_GET['lat'];
$lon = $_GET['lon'];
$altitude = $_GET['alt'];
if ($altitude > 0) { $alt = $altitude; }
else {
$alt = "'indéterminée ou 0'";
}
$zoom = $_GET['zoom'];
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Mapop</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" href="leaflet/leaflet.css">
<link rel="stylesheet" href="leaflet/Control.FullScreen.css">
<script src="leaflet/leaflet.js"></script>
<script src="leaflet/Control.FullScreen.js"></script>
<style>
html, body{
width: 100vw;
height: 100%;
}
body {
padding: 0;
margin: 0;
}
#mapid {
width: 100%;
height: 95vh;
}
@media (max-width: 768px) {
#mapid {
height: 100vh;
}
}
</style>
</head>
<body>
<div id="mapid"> </div>
<script>
var mymap = L.map('mapid',{
fullscreenControl: true,
fullscreenControlOptions: {
position: 'topleft'
}}).setView([<?=$lat?>, <?=$lon?>], <?=$zoom?>);
L.tileLayer('https://wxs.ign.fr/cartes/geoportail/wmts?LAYER=GEOGRAPHICALGRIDSYSTEMS.PLANIGNV2&EXCEPTIONS=text/xml&FORMAT=image/png&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&TILEMATRIX={z}&TILEROW={y}&TILECOL={x}', {
maxZoom: 20,
maxNativeZoom: 18,
attribution: '&copy;IGN <a href="https://www.geoportail.gouv.fr/" target="_blank" rel="noopener">Geoportail</a> <a href="https://www.geoportail.gouv.fr/mentions-legales" target="_blank" rel="noopener">Terms of Service</a>'
}).addTo(mymap);
var marker = L.marker([<?=$lat?>, <?=$lon?>]).addTo(mymap)
.bindPopup('altitude = '+ <?=$alt?> +' m')
.openPopup();
// detect fullscreen toggling
mymap.on('enterFullscreen', function(){
if(window.console) window.console.log('enterFullscreen');
});
mymap.on('exitFullscreen', function(){
if(window.console) window.console.log('exitFullscreen');
});
</script>
</body>
</html>