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

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> 
主站蜘蛛池模板: 堆龙德庆县| 伊川县| 华坪县| 雷州市| 镇赉县| 闽侯县| 渑池县| 珲春市| 太保市| 手机| 蓬溪县| 承德县| 龙州县| 三江| 新泰市| 博白县| 佛学| 郯城县| 托克逊县| 宜兰市| 五台县| 成武县| 武胜县| 岳普湖县| 屏边| 承德市| 怀来县| 湘乡市| 高州市| 瑞昌市| 霍山县| 吉林市| 绥化市| 赤峰市| 芦山县| 桑植县| 龙口市| 武乡县| 西贡区| 申扎县| 双牌县|