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

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> 
主站蜘蛛池模板: 驻马店市| 安顺市| 施秉县| 黄陵县| 钟祥市| 疏附县| 常州市| 周口市| 三江| 商丘市| 德格县| 阿图什市| 绥中县| 罗山县| 揭阳市| 长武县| 调兵山市| 洪泽县| 互助| 临夏市| 汉源县| 衡阳市| 普兰店市| 长阳| 泸州市| 天等县| 南通市| 青河县| 电白县| 乌拉特前旗| 客服| 庆云县| 金秀| 钟祥市| 安泽县| 天峨县| 乡宁县| 新宁县| 琼中| 建阳市| 古蔺县|