-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
35 lines (34 loc) · 1.04 KB
/
index.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
28
29
30
31
32
33
34
35
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="data:," />
<script src="https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.js"></script>
<link
href="https://unpkg.com/maplibre-gl@latest/dist/maplibre-gl.css"
rel="stylesheet"
/>
</head>
<body>
<h1>Shortbread Tiles Demo MapLibre</h1>
<p>
A demo of
<a href="https://shortbread-tiles.org/">Shortbread Vector Tiles</a> styled
with <a href="https://maplibre.org/">MapLibre map rendering</a>.
</p>
<div id="map" style="width: 80vw; height: 80vh"></div>
<script>
var map = new maplibregl.Map({
container: "map",
attributionControl: {
compact: false,
customAttribution:
'<a href="https://www.openstreetmap.org/copyright">© OpenStreetMap</a>',
},
style: "./map_style.json", // stylesheet location
center: [0, 0], // starting position [lng, lat]
zoom: 0, // starting zoom
});
</script>
</body>
</html>