I want to to show an image when the mouse hovers on a marker or polygon, and on click show a popup with property attributes information from GeoJSON.
I can manage to show attributes on click but I am not able to show image on hover.
However, the image can be viewed in console.log but it's not appearing on the screen.
Below is what I want it to look like.
Best Answer
I found a solution. Hope this will help someone who is searching for a similar question.
The code is:
Copied content from http://jsfiddle.net/3v7hd2vx/32/
For reference : https://stackoverflow.com/questions/38170366/leaflet-adjust-popup-to-picture-size