Get map markers working again

This commit is contained in:
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
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