-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
56 lines (53 loc) · 2.56 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
<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Use minimum-scale=1 to enable GPU rasterization -->
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0, maximum-scale=1, minimum-scale=1">
<meta name="Description" content="Interactive map of CivMC">
<title>CMCmap: CivMC Map</title>
<meta property="og:type" content="object" />
<meta property="og:url" content="https://cmcmap.github.io/beta/" />
<meta property="og:site_name" content="CMCmap" />
<meta property="og:title" content="CMCmap" />
<meta property="og:description" content="Interactive map of CivMC" />
<meta property="og:image" content="https://cmcmap.github.io/logo256.png" />
<link rel="icon" type="image/png" href="https://cmcmap.github.io/logo256.png" />
</head>
<body>
<div id="app-root">
Loading...
<br />
<br />
Not loading? <a href="https://cmcmap.github.io/v2.0">Use the old version</a>
</div>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.4.0/leaflet.css" />
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="js/bundle.js"></script>
<script type="text/javascript">
var config = {
defaultCollectionUrls: [
{ source: "https://cmcmap.github.io/data/land_claims.civmap.json", enabled_presentation: true },
{ source: "https://cmcmap.github.io/data/exclusion_zones.civmap.json", enabled_presentation: true },
{ source: "https://cmcmap.github.io/data/settlements.civmap.json", enabled_presentation: false },
],
initialState: {
mapConfig: {
borderApothem: 13000,
tilesRoot: 'https://raw.githubusercontent.com/cmcmap/tiles/master/',
basemaps: {
terrain: { name: 'Terrain', id: 'terrain', bgColor: '#000', isDefault: true },
biome: { name: 'Biome', id: 'biome', bgColor: '#000' },
height: { name: 'Height', id: 'height', bgColor: '#888' },
simple: { name: 'Land/Water', id: 'simple', bgColor: '#888' },
night: { name: 'Night', id: 'night', bgColor: '#000' },
light: { name: 'Light', id: 'light', bgColor: '#000' },
},
}
}
}
window.civMapApi = CivMap.start(config)
</script>
</body>
</html>