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

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> 
主站蜘蛛池模板: 田东县| 延津县| 永德县| 沁水县| 南安市| 全南县| 瑞安市| 长宁县| 江陵县| 崇明县| 镇原县| 临海市| 河北省| 饶平县| 孝感市| 莆田市| 响水县| 柳州市| 新田县| 涿鹿县| 扶余县| 衡山县| 扶风县| 久治县| 定安县| 东兰县| 青川县| 富平县| 祁阳县| 嫩江县| 新源县| 宣汉县| 乌拉特中旗| 平遥县| 普格县| 保靖县| 六安市| 高陵县| 宾阳县| 依兰县| 益阳市|