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