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>
推薦閱讀
- Learning Microsoft Windows Server 2012 Dynamic Access Control
- C#編程入門指南(上下冊)
- JSP開發案例教程
- Visual Basic學習手冊
- Hands-On Microservices with Kotlin
- Python貝葉斯分析(第2版)
- Learning OpenStack Networking(Neutron)
- RabbitMQ Essentials
- C# and .NET Core Test Driven Development
- Spring Boot+MVC實戰指南
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- 多模態數據分析:AGI時代的數據分析方法與實踐
- Vue.js光速入門及企業項目開發實戰
- Getting Started with RethinkDB
- Kotlin入門與實戰