-
Notifications
You must be signed in to change notification settings - Fork 0
/
maplibre_ibrid.html
28 lines (27 loc) · 978 Bytes
/
maplibre_ibrid.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<!DOCTYPE html>
<html lang="en">
<head>
<title>Display a map</title>
<meta property="og:description" content="Initialize a map in an HTML element with MapLibre GL JS." />
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel='stylesheet' href='https://unpkg.com/[email protected]/dist/maplibre-gl.css' />
<script src='https://unpkg.com/[email protected]/dist/maplibre-gl.js'></script>
<style>
body { margin: 0; padding: 0; }
html, body, #map { height: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<script>
const key = urlParams.get('h2AtggfKuemnoaJE5zmz');
const map = new maplibregl.Map({
container: 'map', // container id
style: 'https://raw.githubusercontent.com/marchile/maplibre_ibrid/main/webmapp_bright.json', // style URL
center: [0, 0], // starting position [lng, lat]
zoom: 1 // starting zoom
});
</script>
</body>
</html>