This commit is contained in:
Walter Hupfeld 2023-07-27 15:05:55 +02:00
parent 58a8b88ce5
commit d5f68e275a
2 changed files with 10 additions and 13 deletions

View File

@ -46,21 +46,19 @@
<div class="card"> <div class="card">
<div class="card-header"><h2>Impressum</h2></div> <div class="card-header"><h2>Impressum</h2></div>
<div class="card-body"> <div class="card-body">
<p> Die Unfallkarte basiert auf Daten des Statistischen Bundesamtes:</p> <p> Die Unfallkarte basiert auf Daten des <a href="https://www.destatis.de" target_"blanc">Statistischen Bundesamtes</a>.<br>Die Daten unterliegen der
<a href="https://www.govdata.de/dl-de/by-2-0" target="_blanc">Datenlizenz Deutschland Namensnennung Version 2.0</a></p>
<p>&nbsp;</p> <p>&nbsp;</p>
Weitere Erläuterungen unter <a href="https://unfallatlas.statistikportal.de" target="_blank">https://unfallatlas.statistikportal.de</a> Weitere Erläuterungen unter <a href="https://unfallatlas.statistikportal.de" target="_blank">https://unfallatlas.statistikportal.de</a>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>
</p>
<p>&nbsp;</p> <p>&nbsp;</p>
Walter Hupfeld<br>
Bankerheide 2<br>
59065 Hamm<br>
<p>&nbsp;</p> <p>&nbsp;</p>
<p>&nbsp;</p> <p>&nbsp;</p>
<!-- Bitte nicht entfernen --> <!-- Bitte nicht entfernen -->
<p class="small">Entwicklung: W. Hupfeld, Hamm<br>walter@hupfeld-hamm.de</p> <p class="small">Entwicklung: Walter Hupfeld, Hamm<br>walter@hupfeld-hamm.de</p>
<a class="btn btn-primary text-white" href="index.php?ref=1">zurück</a> <a class="btn btn-primary text-white" href="index.php?ref=1">zurück</a>
</div> </div>

View File

@ -3,7 +3,7 @@
require("config.php"); require("config.php");
require_once("lib/functions.php"); require_once("lib/functions.php");
$numYear="2021"; $numYear="2022";
$strDistrict = (isset($_GET['d'])) ? $_GET['d'] : "Hamm"; $strDistrict = (isset($_GET['d'])) ? $_GET['d'] : "Hamm";
$numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1; $numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1;
@ -37,7 +37,7 @@
$numZoom=$row['zoom']; $numZoom=$row['zoom'];
$strTitle = "Unfallkarte $strTitle "; $strTitle = "Unfallkarte $strTitle ";
$strIntroText = "Unfallkarte für die Stadt $strTitle basierend auf den Daten des Statistischen Bundesamtes."; $strIntroText = "$strTitle basierend auf den Daten des Statistischen Bundesamtes.";
$fileGeojson ="geojson/$strGeojson"; $fileGeojson ="geojson/$strGeojson";
$strLocation = " AND ULAND=$numULAND AND UREGBEZ=$numUREGBEZ AND UKREIS=$numUKREIS "; $strLocation = " AND ULAND=$numULAND AND UREGBEZ=$numUREGBEZ AND UKREIS=$numUKREIS ";
@ -56,8 +56,6 @@
$strIntro ="<h4>".$strTitle."</h4>"; $strIntro ="<h4>".$strTitle."</h4>";
$strIntro .= nl2br2($strIntroText); $strIntro .= nl2br2($strIntroText);
echo $strLocation;
switch ($numVehicle) { switch ($numVehicle) {
case 1: case 1:
case 0: case 0:
@ -148,6 +146,7 @@ echo $strLocation;
<!-- Navbar --> <!-- Navbar -->
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top"> <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
<a class="navbar-brand" href="#"><?= $strTitle ?></a> <a class="navbar-brand" href="#"><?= $strTitle ?></a>
<a class="navbar-brand" href="index.php?year=2022&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2022</a>
<a class="navbar-brand" href="index.php?year=2021&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2021</a> <a class="navbar-brand" href="index.php?year=2021&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2021</a>
<a class="navbar-brand" href="index.php?year=2020&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2020</a> <a class="navbar-brand" href="index.php?year=2020&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2020</a>
<a class="navbar-brand" href="index.php?year=2019&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2019</a> <a class="navbar-brand" href="index.php?year=2019&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2019</a>
@ -228,7 +227,7 @@ echo $strLocation;
// ocmlink = '<a href="http://thunderforest.com/">Thunderforest</a>'; // ocmlink = '<a href="http://thunderforest.com/">Thunderforest</a>';
var ocmLink = '<a href="https://www.mapbox.com/">Mapbox</a>'; var ocmLink = '<a href="https://www.mapbox.com/">Mapbox</a>';
L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', { L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token=sk.eyJ1Ijoid2h1cGZlbGQiLCJhIjoiY2xrMW1icTYzMDUxMTNkbXF6NmIyeWI0aSJ9.-GyWgYxxDQGQnD2KnqTOug', {
maxZoom: 18, maxZoom: 18,
minZoom:<?=$numZoom ?>, minZoom:<?=$numZoom ?>,
attribution: 'Map data &copy; '+ mapLink +' contributors, ' + attribution: 'Map data &copy; '+ mapLink +' contributors, ' +