我正在使用Leaflet Marker Cluster,并且我需要在弹出窗口中显示五行。但是,当我写这篇文章时,它们都在同一行。有人可以帮助我成为另一个人吗?
var a = addressPoints[i];
var title = a[2];
var univ = a[3];
var direct = a[4];
var city = a[5];
var state = a[6];
var marker = new L.Marker(new L.LatLng(a[0], a[1]), { title: title } );
marker.bindPopup("Student: " + title + "University: " + univ + "Direction: " + direct + "City: " + city + "State: " + state);
markers.addLayer(marker);
}
map.addLayer(markers);