Building Web and Mobile ArcGIS Server Applications with JavaScript


Building Web and Mobile ArcGIS Server Applications with JavaScript
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.95
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$67.94
save 6%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Reviews
Support
Sample Chapters
  • Develop ArcGIS Server applications with JavaScript, both for traditional web browsers as well as the mobile platform
  • Acquire in-demand GIS skills sought by many employers
  • Step-by-step instructions, examples, and hands-on practice designed to help you learn the key features and design considerations for building custom ArcGIS Server applications

Book Details

Language : English
Paperback : 274 pages [ 235mm x 191mm ]
Release Date : February 2014
ISBN : 1849697965
ISBN 13 : 9781849697965
Author(s) : Eric Pimpler
Topics and Technologies : All Books, Other


Table of Contents

Preface
Chapter 1: Introduction to HTML, CSS, and JavaScript
Chapter 2: Creating Maps and Adding Layers
Chapter 3: Adding Graphics to the Map
Chapter 4: The Feature Layer
Chapter 5: Using Widgets and Toolbars
Chapter 6: Performing Spatial and Attribute Queries
Chapter 7: Identifying and Finding Features
Chapter 8: Turning Addresses into Points and Points into Addresses
Chapter 9: Network Analyst Tasks
Chapter 10: Geoprocessing Tasks
Chapter 11: Integration with ArcGIS Online
Chapter 12: Creating Mobile Applications
Appendix: Application Design with ArcGIS Templates and Dojo
Index
  • Chapter 1: Introduction to HTML, CSS, and JavaScript
    • Basic HTML page concepts
      • The HTML DOCTYPE declaration
      • Primary tags
      • Validating HTML code
    • JavaScript fundamentals
      • Commenting in code
      • Variables
      • JavaScript and case sensitivity
      • Variable datatypes
      • Decision-supporting statements
      • Looping statements
      • Functions
      • Objects
    • Basic CSS principles
      • CSS syntax
      • Inline styling
      • Internal stylesheets
      • External stylesheets
    • Separating HTML, CSS, and JavaScript
    • Summary
  • Chapter 2: Creating Maps and Adding Layers
    • Introduction
    • The ArcGIS API for JavaScript Sandbox
    • Basic steps for creating an application with the ArcGIS API for JavaScript
      • Creating HTML code for a web page
      • Referencing the ArcGIS API for JavaScript
      • Loading modules
        • Legacy or AMD Dojo?
      • Making sure Document Object Model is available
      • Creating the map
      • Creating the page content
      • Styling the page
      • The complete code
    • More about the map
    • Working with map service layers
      • Using layer classes
      • Tiled map service layers
      • Dynamic map service layers
      • Adding layers to the map
      • Setting visible layers from a map service
      • Setting a definition expression
      • Map navigation
        • Map navigation widgets and toolbars
        • Map navigation using the mouse and keyboard
        • Getting and setting the map extent
    • Map events
    • Summary
  • Chapter 3: Adding Graphics to the Map
    • The four parts of a graphic
    • Creating geometry for graphics
    • Symbolizing graphics
    • Assigning attributes to graphics
    • Displaying graphic attributes in an info template
    • Creating graphics
    • Adding graphics to the graphics layer
      • Multiple graphics layers
    • Time to practice with graphics
    • Summary
  • Chapter 4: The Feature Layer
    • Creating a FeatureLayer object
      • Optional constructor parameters
    • Defining display modes
      • Snapshot mode
      • The on-demand mode
      • The selection-only mode
    • Setting a definition expression
    • Feature selection
    • Rendering a feature layer
    • Time to practice with FeatureLayer
    • Summary
  • Chapter 5: Using Widgets and Toolbars
    • Adding toolbars to an application
      • Steps for creating a toolbar
        • Defining CSS styles
      • Creating buttons
      • Creating an instance of the Navigation toolbar
    • User interface widgets
      • The BasemapGallery widget
      • The Bookmarks widget
      • The Print widget
      • The Geocoder widget
        • Time to practice with the Geocoder widget
      • The Gauge widget
      • The Measurement widget
      • The Popup widget
      • The Legend widget
      • The OverviewMap widget
      • The Scalebar widget
      • The Directions widget
      • The HistogramTimeSlider dijit
      • The HomeButton widget
      • The LocateButton widget
      • The TimeSlider widget
      • The LayerSwipe widget
      • Analysis widgets
    • Feature editing
      • Feature service
      • The editing widgets
        • The Editor widget
        • The TemplatePicker widget
        • The AttributeInspector widget
        • The AttachmentEditor widget
        • The Edit toolbar
    • Summary
  • Chapter 6: Performing Spatial and Attribute Queries
    • Introducing tasks in ArcGIS Server
    • An overview of attribute and spatial queries
      • The Query object
        • Defining the query properties
      • Executing the query with QueryTask
      • Getting query results
    • Time to practice with spatial queries
    • Summary
  • Chapter 7: Identifying and Finding Features
    • Using IdentifyTask to get feature attributes
      • Introducing IdentifyTask
      • The IdentifyParameters object
      • The IdentifyTask attribute
        • IdentifyResult
      • Time to practice – implementing the identify functionality
    • Using FindTask to get the feature attributes
      • FindParameters
      • FindTask
      • FindResult
    • Summary
  • Chapter 8: Turning Addresses into Points and Points into Addresses
    • Introducing geocoding
    • Geocoding with a Locator service in the ArcGIS API for JavaScript
      • Input parameter objects
        • Input JSON address object
        • Input Point object
      • The Locator object
        • The AddressCandidate object
      • The geocoding process
      • The reverse geocoding process
    • Time to practice with the Locator service
    • Summary
  • Chapter 10: Geoprocessing Tasks
    • Models in ArcGIS Server
    • Using Geoprocessor – what you need to know
    • Understanding the service page for a geoprocessing task
      • Input parameters
    • The Geoprocessor task
      • Running the task
        • Synchronous tasks
        • Asynchronous tasks
    • Time to practice with geoprocessing tasks
    • Summary
  • Chapter 11: Integration with ArcGIS Online
    • Adding ArcGIS Online maps to your applications with the webmap ID
    • Adding ArcGIS Online maps to your applications with JSON
    • Time to practice with ArcGIS Online
    • Summary
  • Chapter 12: Creating Mobile Applications
    • ArcGIS API for JavaScript – a compact build
      • Setting the viewport scale
      • Time to practice with the compact build
    • Integrating the Geolocation API
      • Time to practice with the Geolocation API
    • Summary

Eric Pimpler

Eric Pimpler is the founder and owner of GeoSpatial Training Services (geospatialtraining.com) and has over 20 years of experience in implementing and teaching GIS solutions using Esri, Google Earth/Maps, and open source technology. Currently, he focuses on ArcGIS scripting with Python and the development of custom ArcGIS Server web and mobile applications using JavaScript. He is the author of Programming ArcGIS 10.1 with Python Cookbook. Eric has a bachelor's degree in Geography from Texas A&M University and a master's degree in Applied Geography with a concentration in GIS from Texas State University.

Code Downloads

Download the code and support files for this book.


Submit Errata

Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

Sample chapters

You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

Frequently bought together

Building Web and Mobile ArcGIS Server Applications with JavaScript +    IBM Lotus Notes 8.5 User Guide =
50% Off
the second eBook
Price for both: $39.00

Buy both these recommended eBooks together and get 50% off the cheapest eBook.

What you will learn from this book

  • Create maps on a web page and add dynamic and tiled layers
  • Add graphics to maps
  • Use feature layers to render features in the browser
  • Incorporate widgets and toolbars that provide specific functionality to your application
  • Perform spatial and attribute queries
  • Access geoprocessing tasks including models
  • Geocode and reverse geocode addresses
  • Develop mobile GIS applications
  • Conduct network analysis

In Detail

ArcGIS Server is the leading software for developing both web and mobile GIS applications. There are a number of programming languages that you can use to develop applications with ArcGIS Server including JavaScript, Flex, and Silverlight. However, the ArcGIS API for JavaScript is the preferred way of developing your custom applications for ArcGIS Server since it can be used for both web and mobile application development. It’s easy to use and doesn’t require the use of a browser plugin.

This tutorial-based guide provides you with hands-on experience in developing custom web and mobile ArcGIS Server applications with step-by-step style exercises. Along with introducing you to the HTML/CSS/JavaScript technology stack, you will learn to add intuitive geographic layers of information to your map, interactive query and display of spatial data, add user interface widgets, access geoprocessing tasks, and many more in your own web and mobile GIS applications.

With this practical, hands-on guide, you will be able to develop fully-functional online GIS applications with ArcGIS Server using the ArcGIS API for JavaScript. After creating your own map, you will explore how to add geographic layers from a variety of sources including tiled and dynamic map services, add graphics to the map, and stream geographic features to the browser using a FeatureLayer.

Most applications include the specific functionalities implemented by ArcGIS Server as tasks. You’ll learn how to use the various tasks provided by ArcGIS Server including spatial and attribute queries, identification of features, finding features by attribute, and more. Geocoding and geoprocessing tasks are covered in-depth to help you accomplish your task in GIS. Finally, you’ll learn just how easy it is to integrate ArcGIS.com content into your custom developed applications.

This comprehensive guide quickly advances through probing programmatic techniques for building web and mobile GIS applications which will make application development a lot easier!

Approach

An easy to follow tutorial, this book uses a step-by-step approach with exercises designed to give you hands-on experience with this technology.

Who this book is for

If you are a web or mobile application developer, who wants to create GIS applications in your respective platform, this book is ideal for you. You will need Java Script programming experience to get the most out of this book. Although designed as an introductory to intermediate level book, it will also be useful for more advanced developers who are new to the topic of developing applications with ArcGIS Server.

Code Download and Errata
Packt Anytime, Anywhere
Register Books
Print Upgrades
eBook Downloads
Video Support
Contact Us
Awards Voting Nominations Previous Winners
Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
Resources
Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software