From abf7b9586eb980cb3187cb98ecd7f7ae01d97252 Mon Sep 17 00:00:00 2001
From: Zsolt Ero <head>. If you are using npm, you can install the
- maplibre-gl package, but make sure to load the CSS manually.
+ maplibre-gl package. Make sure to import the CSS as well.
<script src="https://unpkg.com/maplibre-gl/dist/maplibre-gl.js"></script>
<link
@@ -26,15 +26,15 @@
rel="stylesheet"
/>
- And initialize it to a div, like this:
+Initialize it to a div like this:
<div id="map" style="width: 100%; height: 500px"></div>
<script>
const map = new maplibregl.Map({
style: 'https://tiles.openfreemap.org/styles/liberty',
center: [-0.114, 51.506],
zoom: 14.2,
- container: 'map';
- })
+ container: 'map'
+ })
</script>