Skip to content

Commit

Permalink
Set imagePath for Leaflet
Browse files Browse the repository at this point in the history
  • Loading branch information
taylor-steve committed Dec 9, 2024
1 parent 7232e93 commit dbc4eb1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/views/layouts/spotlight/base.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.serializeJSON/3.2.1/jquery.serializejson.min.js"></script>
<script src="https://unpkg.com/[email protected]/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<%= javascript_tag 'L.Icon.Default.prototype.options.imagePath = "https://unpkg.com/[email protected]/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 %>
Expand Down

0 comments on commit dbc4eb1

Please sign in to comment.