Skip to content

Commit

Permalink
bump MapLibre GL JS v5.0.0 and added globe control
Browse files Browse the repository at this point in the history
  • Loading branch information
smellman committed Dec 31, 2024
1 parent f2d594a commit 0a6f924
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions _includes/map.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script src="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/maplibre-gl@^4.7.1/dist/maplibre-gl.css" rel="stylesheet" />
<script src="https://unpkg.com/maplibre-gl@^5.0.0/dist/maplibre-gl.js"></script>
<link href="https://unpkg.com/maplibre-gl@^5.0.0/dist/maplibre-gl.css" rel="stylesheet" />
<section>
<div class="container-fluid">
<div class="row">
Expand All @@ -15,6 +15,7 @@
pitch: 30,
});
map.addControl(new maplibregl.NavigationControl());
map.addControl(new maplibregl.GlobeControl());
const marker = new maplibregl.Marker()
.setLngLat([{{ l['marker_lon'] }}, {{ l['marker_lat'] }}])
.addTo(map);
Expand All @@ -24,4 +25,4 @@
</div>
</div>
</div>
</section>
</section>

0 comments on commit 0a6f924

Please sign in to comment.