Maplibregl

Hello everyone.
I am trying to use MapLibre-gl in Observable. And, I’m not able to reproduce this simple example which allows to display a marker. My tests are in this notebook. I don’t understand why the marker is displayed under the map:

1 Like

You’re missing the stylesheet. Add the following in a separate HTML cell:

<link href="https://unpkg.com/maplibre-gl@2.1.9/dist/maplibre-gl.css" rel="stylesheet" />
1 Like

wonderful! thank you very much :+1:

Thanks for this post @neocarto and for your Hello MapLibre notebook as well! I’ve been using free raster tiles from OpenStreetMap via Leaflet for quite some time but have wanted to try some vector tiles. Your work inspired me to do so:

1 Like