From dbc4eb1be32d1c22143849436c042647c114254b Mon Sep 17 00:00:00 2001 From: Steve Taylor Date: Mon, 9 Dec 2024 13:00:58 -0800 Subject: [PATCH] Set imagePath for Leaflet --- app/views/layouts/spotlight/base.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/layouts/spotlight/base.html.erb b/app/views/layouts/spotlight/base.html.erb index d27a25dd8..751273ab9 100644 --- a/app/views/layouts/spotlight/base.html.erb +++ b/app/views/layouts/spotlight/base.html.erb @@ -18,6 +18,7 @@ + <%= javascript_tag 'L.Icon.Default.prototype.options.imagePath = "https://unpkg.com/leaflet@1.9.4/dist/images/"' %> <%= javascript_include_tag 'bootstrap-tagsinput', "data-turbo-track": "reload", defer: false %> <%= javascript_include_tag 'typeahead.bundle.min', "data-turbo-track": "reload", defer: false %> <%= javascript_include_tag 'leaflet-iiif', "data-turbo-track": "reload", defer: true %>