Use the OSM map marker icons on the home page

This commit is contained in:
Tom Hughes 2012-11-20 21:52:40 +00:00
parent a0c9cc7d0a
commit bc1b4d53e3

View file

@ -34,7 +34,7 @@ $(document).ready(function () {
}
if (params.marker) {
marker = L.marker([params.mlat, params.mlon]).addTo(map);
marker = L.marker([params.mlat, params.mlon], {icon: getUserIcon()}).addTo(map);
}
if (params.object) {
@ -60,7 +60,7 @@ $(document).ready(function () {
map.removeLayer(marker);
}
marker = L.marker(centre).addTo(map);
marker = L.marker(centre, {icon: getUserIcon()}).addTo(map);
});
function updateLocation() {