-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (36 loc) · 1.38 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
36
37
38
39
40
<!doctype html>
<html>
<head>
<link href="https://api.mapbox.com/mapbox-gl-js/v3.5.1/mapbox-gl.css" rel="stylesheet">
<link href="index.css" rel="stylesheet">
<script src="https://api.mapbox.com/mapbox-gl-js/v3.5.1/mapbox-gl.js"></script>
<script src="mapbox_token.js"></script>
<script src="index.js"></script>
<style>
body { margin: 0; padding: 0; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
</style>
</head>
<body>
<div id="map"></div>
<div class="map-overlay" id="menu"></div>
<div class="map-overlay" id="legend"></div>
<script>
let aphiaid = 107451;
// let aphiaid = 212506;
// let aphiaid = 386513;
const config = {
sources: {
density: `density_${aphiaid}.geojson`,
summary: `summary_${aphiaid}.geojson`,
envelope: `envelope_${aphiaid}.geojson`,
distribution: `distribution_${aphiaid}.geojson`
}
};
const map = speedyMap(config);
const marker1 = new mapboxgl.Marker()
.setLngLat([12.554729, 55.70651])
.addTo(map);
</script>
</body>
</html>