all accidents

This commit is contained in:
Walter Hupfeld
2020-08-01 15:40:09 +02:00
parent 82e124e0bb
commit 558d336fa0
5 changed files with 25 additions and 22 deletions

View File

@@ -6,14 +6,29 @@
$strIntro ="<h4>".$strTitle."</h4>";
$strIntro .= nl2br2($strIntroText);
$strSQL="SELECT * FROM Unfallorte";
$numKey = (isset($_GET['key'])) ? $_GET['key'] : 1 ;
switch ($numKey) {
case 1 : $strKey = "IstRad=1";
break;
case 2: $strKey = "IstPKW=1";
break;
case 3 : $strKey = "IstFuss=1";
break;
}
$strSQL="SELECT * FROM Unfallorte2019_Hamm WHERE ".$strKey;
$result = $db->query($strSQL);
$arrMarker = array();
$arrDescription = array();
while ($row = $result->fetchArray()) {
$id=$row['OBJECTID'];
//print_r($row);echo "<hr>";
$id = $row[0];
$topic = 2;
$numLng = $row['XGCSWGS84'];
$numLat = $row['YGCSWGS84'];
@@ -139,7 +154,7 @@
// markerIcons ------------------------------------------------------------------------------
var infoMarker = L.AwesomeMarkers.icon({icon: 'info', prefix: 'fa', markerColor: 'orange'});
var bicycleMarker = L.AwesomeMarkers.icon({icon: 'bicycle', prefix: 'fa', markerColor: 'green'});
var bicycleMarker = L.AwesomeMarkers.icon({icon: 'bicycle', prefix: 'fa', markerColor: 'red'});
var carMarker = L.AwesomeMarkers.icon({icon: 'car', prefix: 'fa', markerColor: 'red'});
var truckMarker = L.AwesomeMarkers.icon({icon: 'truck', prefix: 'fa', markerColor: 'beige'});
var trainMarker = L.AwesomeMarkers.icon({icon: 'bus', prefix: 'fa', markerColor: 'blue'});