- var icon = OpenLayers.Marker.defaultIcon();
- icon.url = OpenLayers.Util.getImageLocation(user.icon);
- addMarkerToMap(new OpenLayers.LonLat(user.lon, user.lat), icon, user.description);
+ addMarkerToMap([user.lat, user.lon], L.icon({iconUrl: user.icon}), user.description);