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>
推薦閱讀
- Spring 5.0 Microservices(Second Edition)
- Visual C++程序設計教程
- 高效微控制器C語言編程
- arc42 by Example
- Python測試開發入門與實踐
- C語言從入門到精通(第4版)
- Hands-On Reinforcement Learning with Python
- Mastering Android Game Development
- Learning Apache Cassandra
- Windows Phone 8 Game Development
- Python開發基礎
- 愛上C語言:C KISS
- Clojure編程樂趣
- 青少年Python趣味編程
- Swift Essentials(Second Edition)