Leaflet icon customisation failing on leaflet icon access in external storage

11 views
Skip to first unread message

Janine Roux

unread,
Jul 9, 2025, 4:26:35 AMJul 9
to Leaflet

I am migrating to Leaflet to render my maps in my Django Project. The tutorials all work fine, but when I integrate the changes into my project (which uses Amazon s3 as the storage framework), permission problems (403's) are affecting the icon displays.

I have tried to update the permissions manually on each .png (i.e. marker-icon.png, marker-shadow.png and layers.png), and my icons all appear as expected. layers.png permissions before - after permission update

However, 24hrs later, (note the timestamps) see updated timestamps only on Leaflet .png files the permissions have all been removed again? (not by me). permissions removed

There are other (non Leaflet icons) in this directory - which are not affected! I have tried to set the bucket policies to full access for all - but this has not prevented the removal of the permissions.

I cannot progress to more development, until I understand how to overcome this permission issue. My Django Project is hosted on Heroku, with AWS s3 bucket storage. Django 4.2. Am I invoking Leaflet incorrectly ? can I import a static leaflet marker and use that instead (as another name ?) .. This issue also affects the icons (e.g. Layer icons on the leaflet maps ) pic1.pngpic2.pngpic3.pngpic4.png

Reply all
Reply to author
Forward
0 new messages