Skip to content

Commit

Permalink
use unpkg for maplibre as using locally make middleman crash for unkn…
Browse files Browse the repository at this point in the history
…own reasons
  • Loading branch information
smadbe committed Dec 23, 2024
1 parent 7e7bf01 commit 65531c2
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 63 deletions.
1 change: 0 additions & 1 deletion source/css/maplibre-gl.css

This file was deleted.

60 changes: 0 additions & 60 deletions source/js/maplibre-gl.js

This file was deleted.

3 changes: 2 additions & 1 deletion source/layouts/layout.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
<meta property="og:locale" content="<%= lang %>" />
<% end %>

<%= stylesheet_link_tag "bootstrap.min", "themify-icons", "flexslider", "lightbox.min", "theme", "custom", "maplibre-gl" %>
<%= stylesheet_link_tag "bootstrap.min", "themify-icons", "flexslider", "lightbox.min", "theme", "custom" %>
<link href='/fonts/lato.css' rel='stylesheet' type='text/css'>
<link href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<link href='/fonts/conforta.css' rel='stylesheet' type='text/css'>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion source/localizable/_map_qualif_centers.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
</section>

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

0 comments on commit 65531c2

Please sign in to comment.