let myIcon = L.icon({
iconUrl: 'my-icon.png',
shadowUrl: 'my-icon.png', // where this is like a small house
iconSize: [25, 25], // width and height of the image in pixels
shadowSize: [35, 20], // width, height of optional shadow image
iconAnchor: [12, 12], // point of the icon which will correspond to marker's location
shadowAnchor: [12, 6], // anchor point of the shadow. should be offset
popupAnchor: [0, 0] // point from which the popup should open relative to the iconAnchor
});
L.marker(latlng, { icon: myIcon }).addTo(map)