官术网_书友最值得收藏!

Creating the page content

You need to create the HTML <div> tag that will serve as the container for the map. You always want to assign a unique id to the <div> tag so that your JavaScript code can reference that element in the page. If you're following along in the Sandbox, you'll see that this has already been done for you:

<body>
<div id="map"></div>
</body>

In addition, if you specified a Dojo style sheet you will also want to define the class attribute for the <body> tag to reference it. This is not strictly necessary in this example because we are not going to be using any styleable dijit, but it can't hurt, so change the <body> tag to read as follows:

<body class="claro"> 
   <div id="map"></div> 
</body> 
主站蜘蛛池模板: 新干县| 灯塔市| 达拉特旗| 衡南县| 舟山市| 沾益县| 青河县| 济南市| 博客| 凉城县| 呼伦贝尔市| 南部县| 黑山县| 翁源县| 承德县| 新化县| 台中县| 武胜县| 清河县| 睢宁县| 得荣县| 连云港市| 扶风县| 莱芜市| 凤山县| 富宁县| 阿克| 晋中市| 五河县| 静安区| 七台河市| 涟源市| 九台市| 梨树县| 岗巴县| 惠水县| 岳阳市| 万安县| 扶沟县| 呼伦贝尔市| 宿迁市|