connection.query('select * from marcadores', function(err, results){
res.render('map',{lista : results});
});
e Follow the code inside the javascript (front)
var locations = Array();
<%for(i = 0; i<lista.lenght;i++){%>
locations.push(<%lista[i].id%>);
locations.push(<%lista[i].titulo%>);
locations.push(<%lista[i].latitude%>);
locations.push(<%lista[i].longitude%>);