Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
47 lines (41 sloc) 936 Bytes
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>ArcGIS for Developers - Startup Sample</title>
<style>
html,
body,
#viewDiv {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
</style>
<link rel="stylesheet" href="https://js.arcgis.com/4.12/esri/css/main.css">
<script src="https://js.arcgis.com/4.12/"></script>
<script>
require([
"esri/views/MapView",
"esri/WebMap"
], function(MapView, WebMap) {
// Web マップの参照
var map = new WebMap({
portalItem: {
id: "<Web マップ ID>" //"d3ffea931f4a455f9c3b6c2102e66eda"
}
});
// 地図ビュー
var view = new MapView({
map: map,
container: "viewDiv"
});
});
</script>
</head>
<body>
<div id="viewDiv"></div>
</body>
</html>
You can’t perform that action at this time.