-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
49 lines (38 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
41
42
43
44
45
46
47
48
49
<!DOCTYPE html>
<html>
<head>
<title>CORI Preparedness Score Demo</title>
<meta name="viewport" content="initial-scale=1.0">
<meta charset="utf-8">
<!-- Include Leaflet -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
<link href="https://unpkg.com/[email protected]/dist/leaflet.css" rel="stylesheet">
<!-- Include CARTO.js -->
<script src="https://libs.cartocdn.com/carto.js/v4.2.0/carto.min.js"></script>
<link href="https://carto.com/developers/carto-js/examples/maps/public/style.css" rel="stylesheet">
<!--Other libraries-->
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
<!--Internal CSS-->
<link rel="stylesheet" type="text/css" href="popup.css">
</head>
<body>
<div id="map">
</div>
<!--Hard coded map export (temp)-->
<script src="exported-carto-map-info.js"></script>
<script src="CartoMapExportConversion.js"></script>
<script src="popupHTMLTemplates.js"></script>
<script src="DataFetcher.js"></script>
<script src="PopupGenerator.js"></script>
<script src="Map.js"></script>
<script>
const cartoClientCredentials = {
apiKey: 'default_public',
username: 'ruralinnovation-admin',
CARTO_SERVER: "https://ruralinnovation-admin.carto.com",
}
const layers = new CartoMapExportConversion(exportedCartoMapInfo, cartoClientCredentials).getLayers()
const map = new Map('map', cartoClientCredentials, layers)
</script>
</body>
</html>