我想在mapbox中添加不同的图片图片。我使用了mapbox代码
https://jsfiddle.net/sgybvxw1/1/
我更改了mapbox循环
_pWebSocket
用这个
for (var i = 0; i < addressPoints.length; i++) {
var a = addressPoints[i];
var title = a[2];
var marker = L.marker(new L.LatLng(a[0], a[1]), {
icon: L.mapbox.marker.icon({'marker-symbol': 'post', 'marker-color': '0044FF'}),
title: title
});
marker.bindPopup(title);
markers.addLayer(marker);
}