}
if (params.marker) {
- marker = addMarkerToMap([params.mlat, params.mlon]);
+ marker = L.marker([params.mlat, params.mlon]).addTo(map);
}
if (params.object) {
}
if (marker) {
- removeMarkerFromMap(marker);
+ map.removeLayer(marker);
}
- marker = addMarkerToMap(centre, getArrowIcon());
+ marker = L.marker(centre).addTo(map);
});
function updateLocation() {