Skip to content

Commit 65531c2

Browse files
committed
use unpkg for maplibre as using locally make middleman crash for unknown reasons
1 parent 7e7bf01 commit 65531c2

File tree

4 files changed

+3
-63
lines changed

4 files changed

+3
-63
lines changed

source/css/maplibre-gl.css

-1
This file was deleted.

source/js/maplibre-gl.js

-60
This file was deleted.

source/layouts/layout.erb

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@
1414
<meta property="og:locale" content="<%= lang %>" />
1515
<% end %>
1616

17-
<%= stylesheet_link_tag "bootstrap.min", "themify-icons", "flexslider", "lightbox.min", "theme", "custom", "maplibre-gl" %>
17+
<%= stylesheet_link_tag "bootstrap.min", "themify-icons", "flexslider", "lightbox.min", "theme", "custom" %>
1818
<link href='/fonts/lato.css' rel='stylesheet' type='text/css'>
19+
<link href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
1920
<link href='/fonts/conforta.css' rel='stylesheet' type='text/css'>
2021
</head>
2122
<body>

source/localizable/_map_qualif_centers.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</div>
3333
</section>
3434

35-
<script src="/js/maplibre-gl.js"></script>
35+
<script src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js"></script>
3636
<script type="text/javascript">
3737
var map = new maplibregl.Map({
3838
container: 'map', // container id

0 commit comments

Comments
 (0)