".$strTitle.""; $strIntro .= nl2br2($strIntroText); $result= $db->prepare("SELECT loc.*,f.filename FROM location loc LEFT JOIN files f ON loc.id=f.loc_id WHERE loc.district=:district"); $result->bindParam(":district",$strDistrict); $result->execute(); /* Für die Auswertung nur bestimmte Kategorien anzeigen $numDefect="(6,8,21)"; $strSQL="SELECT loc.*,f.filename FROM location loc LEFT JOIN files f ON loc.id=f.loc_id WHERE defect in ".$numDefect; */ $arrMarker = array(); $arrDescription = array(); $id=0; while ($row = $result->fetch(PDO::FETCH_ASSOC)) { $id=$row['id']; $topic = $row['topic']; $numLng = $row['lng']; $numLat = $row['lat']; $strDescription=generate_tooltip_description($row); if ($boolActive) { $arrDescription[$id] = $strDescription; } $arrMarker[]="marker[".$id."] = [L.marker([".$numLat."," .$numLng."]," ." { icon: ".$arrMarkerType[$topic]." }),'check_".$topic."'];\n" ."marker[".$id."][0].addTo(mymap);\n " ."marker[".$id."][0].bindPopup('".$strDescription."');"; } $markerid=$id+1; /* marker[val.id] = [L.marker([val.lat, val.lng], { "icon": L.MakiMarkers.icon({ "color": color, "size": "m", "icon": "circle" }) }).bindPopup(html), val.membertype]; marker[val.id][0].addTo(map); */ ?>