-
Notifications
You must be signed in to change notification settings - Fork 11
/
example.html
28 lines (28 loc) · 1.05 KB
/
example.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Example map</title>
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<script src="http://localhost:8080/v1/static/[email protected]/maplibre-gl.js"></script>
<link href="http://localhost:8080/v1/static/[email protected]/maplibre-gl.css" rel="stylesheet">
<style>
body, html, #map {margin: 0; padding: 0; height: 100%; width: 100%}
</style>
</head>
<body>
<div id="map"></div>
<script>
var map = new maplibregl.Map({
container: 'map',
center: [0, 0],
zoom: 1,
attributionControl: false
});
map.addControl(new maplibregl.AttributionControl({
customAttribution: '<a href="https://openmaptiles.org/">© OpenMapTiles</a> <a href="https://www.openstreetmap.org/copyright">© OpenStreetMap contributors</a>'
}), 'bottom-right');
</script>
</body>
</html>