-
Notifications
You must be signed in to change notification settings - Fork 160
/
ArcGisServer.html
29 lines (26 loc) · 1 KB
/
ArcGisServer.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
<!DOCTYPE html>
<head>
<title>ArcGIS</title>
<link href="../Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script type="text/javascript" src="./js/require.min.js" data-main="./js/main"></script>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
function onload(Cesium) {
var viewer = new Cesium.Viewer('cesiumContainer', {
imageryProvider : new Cesium.ArcGisMapServerImageryProvider({
url : 'http://atlasmaps.esri.com/arcgis/rest/services/Esri/USA_Population_Density/MapServer',
enablePickFeatures : false
}),
baseLayerPicker : false
});
var test = new Cesium.ArcGisMapServerImageryProvider({
url : 'http://atlasmaps.esri.com/arcgis/rest/services/Esri/USA_Population_Density/MapServer',
enablePickFeatures : false
});
var imageryLayers = viewer.imageryLayers;
imageryLayers.addImageryProvider(test);
};
</script>
</body>