Home Page Icon
Home Page
Table of Contents for
Cover
Close
Cover
by Yogesh Dhanapal, Jayakrishnan Vijayaraghavan
ArcGIS for JavaScript Developers by Example
ArcGIS for JavaScript Developers by Example
Table of Contents
ArcGIS for JavaScript Developers by Example
Credits
About the Authors
About the Reviewer
www.PacktPub.com
eBooks, discount offers, and more
Why subscribe?
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Foundation for the API
Setting up the development environment
Browser, web server, and IDE
Web browser
Web server
IDE
Setting up an ArcGIS Developer account
Hello, Map – the jump-start code
Understanding the jump-start code
The API reference link
The AMD pattern of coding
The esri/map module
Setting the initial map extent
Brushing up some coordinate geometry
Quiz time!
Spatial reference systems
The quiz results
Getting the current map extent
The template generator for loading modules
Understanding dojo and AMD
The key components of AMD
The define method
The require method
Some awesome dojo modules
Dojo dom modules
Dojo event handler module
Dojo array module
dojo/_base/array
Understanding ArcGIS Server and the REST API
Types of service
Working with the Service Catalog
Map server
The Query endpoint
Summary
2. Layers and Widgets
Data sources supported by the API
Flat file formats
KML
CSV files
ArcGIS Server
The concept of layers
Adding layers to a map
The functional classification of layers
Basemap layers
Functional layers
Graphics layers
Types of layers
The ArcGIS Tiledmap service layer
Spatial Reference
TileInfo
Extent and Scale Info
The ArcGIS DynamicMapService layer
Feature layers
The FeatureLayer constructor
Infotemplates
Graphics layer
Geometry
Symbol
Attributes
InfoTemplate
Map and layer properties
Map and layer events
Using Esri widgets – the genie's lamp
The BaseMapGallery widget
The Legend widget
Summary
3. Writing Queries
Developing the Wildfire application
Registering the application in the developer portal
Using a proxy in the application
Bootstrapping the application
Types of querying operations
Query task
Find task
Identify task
Building and executing a Query task
The QueryTask constructor
Constructor parameters
Instantiating the QueryTask object
Building the Query object
Querying by spatial geometry
Executing the query
Querying for Count
Query for Features
Query for Extent
Building and executing IdentifyTask
Instantiating IdentifyTask
Constructing the identify parameters object
Executing IdentifyTask
Building and executing a Find task
Instantiating a Find task
Building the Find parameters
Executing a Find task
Building a feature table
Building popups
Building InfoTemplates
Summary
4. Building Custom Widgets
Creating a simple class
Configuring dojo
Developing a standalone widget
The dijit life cycle
Creating templated widgets
Widget folder structure
Guidelines for creating project folders
Creating a single point of entry
Defining dojoConfig
Modularizing the code
Providing support for internationalization
Steps to provide internationalization support
An overview of the widget folder structure
Building a custom widget
Modules required for the widget
Modules for the class declaration and OOPS
Modules for using HTML templates
Module for using event
Modules for manipulating dom elements and their styles
Modules for using the draw toolbar and displaying graphics
Modules for querying data
Modules for internationalization support
Using the draw toolbar
Initiating the draw toolbar
The draw operation
The draw-end event handler
Symbolizing the drawn shape
Executing the query
Initializing the QueryTask and Query object
Query event handlers
Defining the HTML template
Symbolizing query results
Adding the graphics to the map
Summary
5. Working with Renderers
Working with colors
The RGB color model
The Esri color module
Working with symbols
SimpleLineSymbol
SimpleMarkerSymbol
ArcGIS symbol playground
SimpleFillSymbol
PictureMarkerSymbol
PictureFillSymbol
TextSymbol
Working with renderers
Choosing a renderer for a scenario
Developing a Stream Gauge application
The data source
Simple renderer
Applying unique value renderer
Class breaks renderer
HeatmapRenderer
DotDensityRenderer
BlendRenderer
SmartMapping
A classification method for classed renderers
Summary
6. Working with Real-Time Data
Background about the application
Visualizing map data
Building a hurricane tracking app
Symbolizing active hurricane layers
Adding a global wind data gauge
Tracking the latest active hurricanes
Getting a unique list of storms
Fetching the latest data and displaying on the grid
Refreshing feature layer
Creating a weather widget
The open weather API
Using the Geolocation API
Using geometry engine on input data
Displaying the weather data in the widget
Summary
7. Map Analytics and Visualization Techniques
Building a demographics analytic portal
Basic statistical measures
Minimum
Maximum
Sum
Average
Standard deviation
Standardization
Statistical functionality provided by the API
StatisticDefinition module
Classification methods
Equal interval
Natural breaks
Quantile
Standard deviation
Concept of normalization
Feature layer statistics
Working with continuous and break renderers
ColorInfo
Selecting a color scheme
Creating a classed color renderer
opacityInfo
Using opacityInfo to create a classes opacity renderer
SizeInfo
RotationInfo
Multivariate mapping
Smart mapping
Summary
8. Advanced Map Visualization and Charting Libraries
Charting with dojo
Dojo chart themes
Charting using the popup template
Types of 2D charts provided by dojox modules
Dojo charting methods
Defining your plot
Defining the theme
Pushing the data
Chart plugins
Charting with D3.js
Creating a column chart with D3
D3 selections
D3 data
D3 scaling
Integrating SVG into D3 charts
Charting with Cedar
Loading Cedar libraries
Loading using the script tags
Loading using the AMD pattern
Summary
9. Visualization with Time Aware Layers
Time aware layers
Need for time aware layers
Understanding time aware layers
Building the Drought app
Using the Time Slider
Steps to create a TimeSlider
Querying based on time using D3
Scaling and formatting time
D3 brush
Advanced spatio-temporal visualization with Cedar
Summary
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Next
Next Chapter
Table of Contents
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset