forked from tomwayson/angular2-esri-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
56 lines (50 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
48
49
50
51
52
53
54
55
56
<html>
<head>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous">
<link rel="stylesheet" href="//js.arcgis.com/3.16/esri/themes/calcite/dijit/calcite.css">
<link rel="stylesheet" href="//js.arcgis.com/3.16/esri/themes/calcite/esri/esri.css">
<title>ArcGIS JS API 3 & Angular 2</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<!-- 1. Load Angular libraries -->
<script src="node_modules/es6-shim/es6-shim.min.js"></script>
<script src="node_modules/zone.js/dist/zone.js"></script>
<script src="node_modules/reflect-metadata/Reflect.js"></script>
<script src="node_modules/systemjs/dist/system.src.js"></script>
<script src="systemjs.config.js"></script>
<!-- 2. Configure and load Esri libraries -->
<script>
window.dojoConfig = {
async: true
};
</script>
<script src="https://js.arcgis.com/3.16/"></script>
<script src="node_modules/esri-system-js/dist/esriSystem.js"></script>
</head>
<!-- 3. Display the application -->
<body class="calcite">
<div class="container-fluid">
<my-app>Loading...</my-app>
</div>
<script>
// load esri modules needed by this application
// into a System.js module called esri
esriSystem.register([
'esri/arcgis/utils',
'esri/basemaps',
'esri/dijit/Legend',
'esri/dijit/Search'
], function () {
// then bootstrap application
System.import('app')
.then(null, console.error.bind(console));
}, {
moduleNameOverrides: {
'esri/arcgis/utils': 'arcgisUtils',
'esri/basemaps': 'esriBasemaps'
}
});
</script>
</body>
</html>