first application

7639 단어 application
<!DOCTYPE html>

<html>

<head>

  <title>Create a Map</title>

  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

  <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">

  <link rel="stylesheet" href="http://js.arcgis.com/3.13/dijit/themes/claro/claro.css">

  <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css">

  <style>

    html, body, #mapDiv{

      padding: 0;

      margin: 0;

      height: 100%;

    }

  </style>

  

  <script src="http://js.arcgis.com/3.13/"></script>

  <script>

    var map;

    require(["esri/map", "dojo/domReady!"], function(Map) {

      map = new Map("mapDiv", {

        center: [-56.049, 38.485],

        zoom: 3,

        basemap: "streets"

      });

    });

    //basemap:"satellite", "hybrid", "topo", "gray", "oceans", "osm", "national-geographic"

  </script>



</head>

<body class="claro">

  <div id="mapDiv"></div>

</body>

</html>

https://developers.arcgis.com/javascript/jshelp/intro_firstmap_amd.html
head: tags: 2 meta, 2 link, and a script. styles, scripts.
body: div places things on the interface
Create a map: map=new Map("id",{center:,zoom:,basemap:});

좋은 웹페이지 즐겨찾기