Get map markers working again
This commit is contained in:
parent
02193ea772
commit
12ef9ed774
@ -126,6 +126,10 @@ function poiPopup(feature, layer) {
|
||||
|
||||
// This is called when the map is initialized
|
||||
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);
|
||||
|
||||
// Pull data as GeoJSON and add to map with a modal
|
||||
|
@ -281,6 +281,7 @@ LEAFLET_CONFIG = {
|
||||
'auto-include': True
|
||||
}
|
||||
},
|
||||
'FORCE_IMAGE_PATH': True
|
||||
}
|
||||
|
||||
# Error reporting & logging
|
||||
|
Loading…
Reference in New Issue
Block a user