Just contact ArcGIS for JavaScript, look at the example, look at the feeling of adding a map is very simple, but some of the content do not know what to do, first to understand
1, need to add ESRI CSS file path such as:
<link rel= "stylesheet" href= "Http://js.arcgis.com/3.8/js/esri/css/esri.css" >
2, need to set the content of the Web page than for example:
HTML, body, #map {
height:100%;
width:100%;
margin:0;
padding:0;
}
Body {
background-color: #FFF;
Overflow:hidden;
font-family: "Trebuchet MS";
}
3. In addition to adding ESRI's CSS style path, you will need to add Esri's JS API path as follows:
<script src= "http://js.arcgis.com/3.8/" ></script>
4, it is said to use the relevant methods of dojo to load map objects and bottom graphs, such as:
<script>
var map;
Require (["Esri/map", "dojo/domready!"], function (map) {
map = new map ("map", {
basemap: "Topo",
Center: [- 122.45,37.75],//long, lat
zoom:13,
sliderstyle: "Small"
}
); </script>
Note: Temporarily did not understand how require method is played, later understand, in this way can load some basic bottom diagram.
5. Define DIV Object
<div id= "Map" ></div>
Oh, a simple few steps can be loaded on the bottom of the map is not very simple, but first know the relevant principle is not so simple, waiting for future continuous contact ....