Basic steps for creating an application with the ArcGIS API for JavaScript
Now that we've got some of the basics of HTML, CSS, and JavaScript out of the way it's time to actually get to work and learn how to build some great GIS web applications! The material in this chapter will introduce you to some of the fundamental concepts that define how you create a map and add information to the map in the form of layers.
There are several steps that you'll need to follow for creating any GIS web application with the ArcGIS API for JavaScript. These steps will always need to be performed if you intend to have a map as part of your application. And I can't imagine that you wouldn't want to do that, given that you're reading this book! In a nutshell,there are several steps you need to follow:
- Create the HTML code for the page
- Reference the ArcGIS API for JavaScript and style sheets
- Load modules
- Make sure the DOM is available
- Create the map
- Define page content
- Style the page
- The entire code
The HTML Document Object Model ( DOM) is a hierarchical representation of all the elements that make up a web page. JavaScript uses the DOM to inspect and change the values of these page elements at runtime.
推薦閱讀
- Spring 5.0 By Example
- C語言程序設計案例教程(第2版)
- 編寫高質量代碼:改善C程序代碼的125個建議
- 秒懂設計模式
- Effective Python Penetration Testing
- 深入淺出Serverless:技術原理與應用實踐
- Getting Started with Greenplum for Big Data Analytics
- Android應用案例開發大全(第二版)
- 多媒體技術及應用
- Python網絡爬蟲實例教程(視頻講解版)
- Microsoft Exchange Server 2016 PowerShell Cookbook(Fourth Edition)
- Java程序設計
- Android應用開發攻略
- Django 3 Web Development Cookbook
- Effective Python:編寫高質量Python代碼的90個有效方法(原書第2版)