[GIS] An image on top of the marker with Leaflet

imageleafletoverlay

How can I achieve the same result (image below) with Leaflet?

Desired_Result

L.imageOverlay() only can supply one image, and the image size is based on (lat, lon).

But what I need is the image size the same as the marker even when I zoom in/out.

Maybe someone can guide me through?

Best Answer

If you create a Marker you could bind a Popup with a description. The description can be pure textual but also HTML. This way you can show an image in the popup (you also need to modify CSS to change the default css of the popup).