-
Notifications
You must be signed in to change notification settings - Fork 4
/
index.html
64 lines (54 loc) · 1.3 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>Add Feature Layer</title>
<link rel="stylesheet" href="https://js.arcgis.com/4.1/esri/css/main.css">
<style>
html, body, #viewDiv {
padding: 0;
margin: 0;
height: 100%;
}
</style>
<script src="https://js.arcgis.com/4.1/"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"esri/layers/FeatureLayer",
"dojo/domReady!"
], function(Map, MapView, FeatureLayer) {
var blockGroupsFL = new FeatureLayer({
portalItem: {
id: "baac7d7be5a846388ec64252d9bdd6ca"
}
});
var metroLinesFL = new FeatureLayer({
portalItem: {
id: "61b9ea7e364040389ff2f205d0151b74"
}
});
var metroStationsFL = new FeatureLayer({
portalItem: {
id: "d2800734a998448f9c4dc81014c52905"
}
});
var map = new Map({
basemap: "dark-gray-vector",
layers: [blockGroupsFL,metroLinesFL,metroStationsFL]
});
var view = new MapView({
container: "viewDiv",
map: map,
center: [-77.029, 38.89],
zoom: 10
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>