".$strTitle.""; $strIntro .= nl2br2($strIntroText); $strSQL="SELECT * FROM Unfallorte"; $result = $db->query($strSQL); $arrMarker = array(); $arrDescription = array(); while ($row = $result->fetchArray()) { $id=$row['OBJECTID']; $topic = 2; $numLng = $row['XGCSWGS84']; $numLat = $row['YGCSWGS84']; $strDescription=generate_tooltip_description($row); $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); */ ?>