}
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) {
map.removeLayer(marker);
}
- marker = L.marker(centre, {icon: getArrowIcon()}).addTo(map);
+ marker = L.marker(centre, {icon: getUserIcon()}).addTo(map);
});
function updateLocation() {