<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1,user-scalable=no">
<title>create a 2D map</title>
</head>
<style>
html,body,#viewDiv{
padding: 0; margin: 0;
height: 100%; width: 100%;
}
</style>
<link rel="stylesheet" href="https://js./4.15/esri/css/main.css">
<script src="https://js./4.15/"></script>
<body>
<div id="viewDiv"></div>
</body>
<script>
require([
"esri/Map",
"esri/views/MapView",
"dojo/domReady!"], function (Map,MapView) {
//視圖分離
var map=new Map({
basemap: "streets"
});
var view=new MapView({
container: "viewDiv",
map: map,
zoom:4,//放大倍數(shù)
center:[15,65]
});
});
</script>
</html>