guys this is how far i went in my add marker function i can get the object and every thing is working just the way i want but i have no idea on how to add the info window . any tip on where to start will be helpful
function addMarker(place)
{
var mylatLng={lat:Number(place.latitude),lng:Number(place.longitude)};
var marker=new MarkerWithLabel({
position:mylatLng,
map:map,
labelContent:place.place_name+" "+place.admin_name1,
icon:"https://maps.google.com/mapfiles/kml/pal2/icon31.png",
labelStyle:{"font-weight":"bold","font-size":"15px","padding-left":"2.5px"}
});
marker.setMap(map);
marker.addListener("click",function(){
$.ajax({url:"../articles.php",
type:"GET",
data:{geo:place.place_name},
success:function(response){
if(response.length>0){
console.log(response);
}
else
{
console.log("slow news day!");
}},
error:function(){
console.log("an error occured");
}
});
});
}