Skip to main content

Setup Web

Include the following JavaScript and CSS files in the <head> tag of your web/index.html file:

web/index.html
<!DOCTYPE html>
<html>
<head>
<!-- other html -->

<!-- MapLibre -->
<script src='https://unpkg.com/maplibre-gl@^4.3/dist/maplibre-gl.js'></script>
<link href='https://unpkg.com/maplibre-gl@^4.3/dist/maplibre-gl.css'
rel='stylesheet'/>
</head>
</html>

^4.3 ensures that your app will always use the latest version of maplibre-gl-js v4 but not suddenly use an incompatible version.