-function addMarkerToMap(position, icon, description) {
- var marker = L.marker(position, icon ? {icon: icon} : null).addTo(map);
-
- if (description) {
- marker.bindPopup(description);
- }
-
- return marker;
-}
-
-function removeMarkerFromMap(marker) {
- map.removeLayer(marker);
-}
-