-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
106 lines (90 loc) · 1.52 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Cahill–Concialdi Projection</title>
</head>
<style>
html, body {
margin: 0;
padding: 0;
background: #000;
}
svg, canvas {
position: absolute;
width: 100vw;
}
#annotation {
position: absolute;
top: 20px;
left: 20px;
color: #fff;
font-size: 30px;
}
</style>
<body>
<canvas></canvas>
<svg>
<style>
#background {
fill: #123;
stroke: none;
}
#graticule {
fill: none;
stroke-width: 0.15;
stroke: #246;
}
#circles {
fill: none;
stroke-width: 0.3;
stroke: #357;
}
.polar-tropic {
stroke-dasharray: 1 1;
}
#countries {
stroke-width: 0.01;
stroke-linejoin: round;
}
#countries path:hover {
fill: #ff8;
}
#boundaries {
fill: none;
stroke: #234;
stroke-width: 0.1;
stroke-linejoin: round;
stroke-linecap: round;
}
#boundaries path.disputed {
stroke-dasharray: 0.5 0.2;
}
</style>
<g id="svg-map-wrapper">
<path id="background" />
<g id="graticule"></g>
<g id="circles"></g>
<g id="countries"></g>
<g id="boundaries"></g>
</g>
</svg>
<div id="annotation"></div>
<script src="https://unpkg.com/[email protected]/complex.min.js"></script>
<script type="module">
import { drawVectorMap } from './map-vector.mjs';
import {
drawRasterMap,
RASTER_NE_I,
RASTER_NE_HYPSO,
RASTER_NASA_BLUE,
RASTER_NASA_BLACK,
RASTER_NE_I_DAY_NIGHT,
RASTER_NE_HYPSO_DAY_NIGHT,
RASTER_NASA_DAY_NIGHT,
} from './map-raster.mjs';
drawVectorMap();
//drawRasterMap(RASTER_NE_HYPSO_DAY_NIGHT, 5);
</script>
</body>
</html>