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

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> 
主站蜘蛛池模板: 浑源县| 页游| 万载县| 收藏| 湖南省| 朝阳区| 安国市| 左云县| 新巴尔虎左旗| 嫩江县| 江西省| 璧山县| 长寿区| 阳新县| 青浦区| 定结县| 巫溪县| 五莲县| 平乐县| 龙海市| 黔西| 南雄市| 福海县| 綦江县| 北川| 文昌市| 搜索| 扎赉特旗| 新野县| 孟州市| 桂林市| 镇巴县| 容城县| 阿城市| 惠水县| 天气| 天镇县| 云梦县| 类乌齐县| 柳林县| 阜新市|