replacing Leaflet icon with a customised .png icon from json data import which is hosted on aws s3 storage

8 views
Skip to first unread message

Janine Roux

unread,
Jul 8, 2025, 10:05:54 AMJul 8
to Leaflet
I am new to Leaflet, as I am busy trying to migrate my Bing maps to a Leaflet environment. code.pngI have managed to customise a standard icon for a marker. 
However, as part of my async function which renders the positions, I have a .png image (which is already rotated and specific to a customer), which I would like to replace the icon with. This -tail- image is in the data as a .png file.
leaflet.png

however, I am struggling to figure out exactly how to achieve this.
I am trying to include the .png's in both the popup and the latest position Marker... has anyone any idea how I can achieve this ? (my storage is in an aws s3 bucket).  I have tried many different options , the latest of which I have attached.
Reply all
Reply to author
Forward
0 new messages