|
|
|
@ -3,7 +3,7 @@
|
|
|
|
|
require("config.php");
|
|
|
|
|
require_once("lib/functions.php");
|
|
|
|
|
|
|
|
|
|
$numYear="2021";
|
|
|
|
|
$numYear="2022";
|
|
|
|
|
|
|
|
|
|
$strDistrict = (isset($_GET['d'])) ? $_GET['d'] : "Hamm";
|
|
|
|
|
$numVehicle = (isset($_GET['v'])) ? (int) $_GET['v'] : 1;
|
|
|
|
@ -37,7 +37,7 @@
|
|
|
|
|
$numZoom=$row['zoom'];
|
|
|
|
|
|
|
|
|
|
$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";
|
|
|
|
|
$strLocation = " AND ULAND=$numULAND AND UREGBEZ=$numUREGBEZ AND UKREIS=$numUKREIS ";
|
|
|
|
@ -56,8 +56,6 @@
|
|
|
|
|
$strIntro ="<h4>".$strTitle."</h4>";
|
|
|
|
|
$strIntro .= nl2br2($strIntroText);
|
|
|
|
|
|
|
|
|
|
echo $strLocation;
|
|
|
|
|
|
|
|
|
|
switch ($numVehicle) {
|
|
|
|
|
case 1:
|
|
|
|
|
case 0:
|
|
|
|
@ -148,6 +146,7 @@ echo $strLocation;
|
|
|
|
|
<!-- Navbar -->
|
|
|
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top">
|
|
|
|
|
<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=2020&v=<?=$numVehicle?>&d=<?=$strDistrict?>">2020</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>';
|
|
|
|
|
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,
|
|
|
|
|
minZoom:<?=$numZoom ?>,
|
|
|
|
|
attribution: 'Map data © '+ mapLink +' contributors, ' +
|
|
|
|
|