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>
推薦閱讀
- Python for Secret Agents:Volume II
- 華為HMS生態(tài)與應(yīng)用開發(fā)實(shí)戰(zhàn)
- Offer來了:Java面試核心知識(shí)點(diǎn)精講(原理篇)
- Practical DevOps
- STM32F0實(shí)戰(zhàn):基于HAL庫開發(fā)
- Kotlin Standard Library Cookbook
- Python高效開發(fā)實(shí)戰(zhàn):Django、Tornado、Flask、Twisted(第3版)
- 劍指MySQL:架構(gòu)、調(diào)優(yōu)與運(yùn)維
- 表哥的Access入門:以Excel視角快速學(xué)習(xí)數(shù)據(jù)庫開發(fā)(第2版)
- Windows Phone 7.5:Building Location-aware Applications
- Python深度學(xué)習(xí)原理、算法與案例
- Mastering ArcGIS Enterprise Administration
- SciPy Recipes
- Java程序設(shè)計(jì)教程
- Mastering Bootstrap 4