".$strTitle.""; $strIntro .= nl2br2($strIntroText); $strSQL="SELECT loc.*,f.filename FROM location loc LEFT JOIN files f ON loc.id=f.loc_id"; /* 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; */ $result = $db->query($strSQL); $arrMarker = array(); $arrDescription = array(); 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); */ ?>