arcgis api for JavaScript(NO.1 Initial map)
<title>Simple Map</title> //Esri本地样式加载 <style> html, body, #map { height: 100%; margin: 0; padding: 0; } </style> //初始化所需的API <script src="https://localhost/arcgis_js_api/library/3.17/3.17/init.js"></script> <script> var map; require(["esri/map", "dojo/domReady!"], function (Map) {
map = new Map("map", {
basemap: "topo", //For full list of pre-defined basemaps, navigate to https://arcg.is/1JVo6Wd
center: [-122.45, 37.75], // longitude, latitude
zoom: 13
});
});
</script>