forked from Esri/visualization-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (30 loc) · 965 Bytes
/
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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"/>
<title>Data Visualization - Add Data</title>
<link rel="stylesheet" href="//js.arcgis.com/3.11/esri/css/esri.css">
<style>
html, body, #map {
height: 100%;
margin: 0;
}
</style>
<script src="//js.arcgis.com/3.11/"></script>
<script>
require(["esri/map", "esri/layers/FeatureLayer", "dojo/domReady!"], function(Map, FeatureLayer) {
var map = new Map("map", {
basemap: "gray",
center: [-100, 40],
zoom: 5
});
var layer = new FeatureLayer("//services.arcgis.com/V6ZHFr6zdgNZuVG0/ArcGIS/rest/services/NationalParkStats2013/FeatureServer/0")
map.addLayer(layer);
});
</script>
</head>
<body>
<div id="map"></div>
</body>
</html>