Get map markers working again

This commit is contained in:
Anna Sidwell 2018-12-02 03:13:38 +00:00
parent 02193ea772
commit 12ef9ed774
2 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,10 @@ function poiPopup(feature, layer) {
// This is called when the map is initialized // This is called when the map is initialized
function main_app_init(map, options) { function main_app_init(map, options) {
// This is a workaround for FORCE_IMAGE_PATH not working
// Upstream pull request - https://github.com/makinacorpus/django-leaflet/pull/243
L.Icon.Default.imagePath = "{% static "leaflet/images" %}/";
var hash = new L.hash(map); var hash = new L.hash(map);
// Pull data as GeoJSON and add to map with a modal // Pull data as GeoJSON and add to map with a modal

View File

@ -281,6 +281,7 @@ LEAFLET_CONFIG = {
'auto-include': True 'auto-include': True
} }
}, },
'FORCE_IMAGE_PATH': True
} }
# Error reporting & logging # Error reporting & logging