-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
executable file
·47 lines (43 loc) · 1.88 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
<!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 CivCraft 2.0">
<title>CivCraft 2.0 Map</title>
<meta property="og:type" content="object" />
<meta property="og:url" content="https://civmap.github.io/2.0" />
<meta property="og:site_name" content="CivCraft" />
<meta property="og:title" content="CivCraft" />
<meta property="og:description" content="Interactive Map of CivCraft 2.0" />
<meta property="og:image" content="https://www.civcraft.co/assets/img/logo-new.png" />
<link rel="icon" type="image/png" href="https://www.civcraft.co/assets/img/logo-new.png" />
</head>
<body>
<div id="app-root">
Loading...
</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://raw.githubusercontent.com/CivMap/2.0/master/politicalmap.json", enabled_presentation: true },
],
initialState: {
mapConfig: {
borderApothem: 15000,
tilesRoot: 'https://raw.githubusercontent.com/CivMap/2.0/master/tiles/',
basemaps: {
terrain: { name: 'Terrain', id: 'terrain', bgColor: '#000', isDefault: true },
},
}
}
}
window.civMapApi = CivMap.start(config)
</script>
</body>
</html>