Building Web Applications with ArcGIS
4.5/5
()
About this ebook
ArcGIS allows users to create rich maps and applications that interact with services hosted on ArcGIS for Server and ArcGIS Online. This book will help you to understand the ArcGIS JavaScript API in a fun way while building a real-life project.
This book revolves around a fictional project called Bestaurants. The journey starts with a description of the project requirements before moving on to designing and sketching an interface of what the website will look like. Then, gradually with each chapter, you will add a single functionality until the full ArcGIS application is completed.
By the end of this book, you will have built an entire ArcGIS web application from scratch. An additional bonus appendix is included on how to build ArcGIS applications with ArcGIS Online–a new and extremely useful service offered by Esri.
Hussein Nasser
Hussein Nasser is an Esri award-winning senior GIS solution architect working in the GIS field since 2006. He is the author of three books in the ArcGIS technology: Administering ArcGIS for Server, Learning ArcGIS Geodatabases, and Building Web Applications with ArcGIS, all by Packt Publishing. In 2007, he won the first place at the annual ArcGIS Server Code Challenge, conducted at the Esri Developer Summit in Palm Springs, California. In 2014, he started the IGeometry YouTube channel, where he periodically publishes educational GIS videos.
Read more from Hussein Nasser
Learning ArcGIS Geodatabases Rating: 5 out of 5 stars5/5ArcGIS By Example Rating: 1 out of 5 stars1/5Administering ArcGIS for Server Rating: 0 out of 5 stars0 ratings
Related to Building Web Applications with ArcGIS
Related ebooks
ArcPy and ArcGIS - Second Edition Rating: 5 out of 5 stars5/5Mapbox Cookbook Rating: 0 out of 5 stars0 ratingsLearning ArcGIS Runtime SDK for .NET Rating: 0 out of 5 stars0 ratingsSpatial Analytics with ArcGIS Rating: 0 out of 5 stars0 ratingsArcGIS Web Development Rating: 0 out of 5 stars0 ratingsMaking Spatial Decisions Using ArcGIS Pro: A Workbook Rating: 5 out of 5 stars5/5Practical GIS Rating: 0 out of 5 stars0 ratingsDeveloping Mobile Web ArcGIS Applications Rating: 0 out of 5 stars0 ratingsLearning QGIS - Third Edition Rating: 4 out of 5 stars4/5QGIS By Example Rating: 3 out of 5 stars3/5Mastering PostGIS Rating: 0 out of 5 stars0 ratingsLearning QGIS 2.0 Rating: 5 out of 5 stars5/5Instructional Guide for The ArcGIS Book Rating: 1 out of 5 stars1/5GIS Tutorial for ArcGIS Pro 2.8 Rating: 5 out of 5 stars5/5ArcGIS Blueprints Rating: 4 out of 5 stars4/5Geospatial Development By Example with Python Rating: 5 out of 5 stars5/5Getting to Know ArcGIS Pro 2.6 Rating: 5 out of 5 stars5/5Python Geospatial Analysis Essentials Rating: 0 out of 5 stars0 ratingsBuilding Mapping Applications with QGIS Rating: 0 out of 5 stars0 ratingsLeaflet.js Essentials Rating: 4 out of 5 stars4/5GeoServer Cookbook Rating: 0 out of 5 stars0 ratingsLearning D3.js Mapping Rating: 0 out of 5 stars0 ratingsLearning Geospatial Analysis with Python Rating: 5 out of 5 stars5/5Advanced Python Scripting for ArcGIS Pro Rating: 4 out of 5 stars4/5Designing Geodatabases for Transportation Rating: 5 out of 5 stars5/5Programming ArcGIS 10.1 with Python Cookbook Rating: 4 out of 5 stars4/5Top 20 Essential Skills for ArcGIS Pro Rating: 0 out of 5 stars0 ratingsGeospatial intelligence A Clear and Concise Reference Rating: 0 out of 5 stars0 ratingsGIS Tutorial for Crime Analysis Rating: 3 out of 5 stars3/5Focus on Geodatabases in ArcGIS Pro Rating: 4 out of 5 stars4/5
Internet & Web For You
No Place to Hide: Edward Snowden, the NSA, and the U.S. Surveillance State Rating: 4 out of 5 stars4/5How to Disappear and Live Off the Grid: A CIA Insider's Guide Rating: 0 out of 5 stars0 ratingsSocial Engineering: The Science of Human Hacking Rating: 3 out of 5 stars3/5Coding For Dummies Rating: 5 out of 5 stars5/5How to Be Invisible: Protect Your Home, Your Children, Your Assets, and Your Life Rating: 4 out of 5 stars4/5Everybody Lies: Big Data, New Data, and What the Internet Can Tell Us About Who We Really Are Rating: 4 out of 5 stars4/5Six Figure Blogging Blueprint Rating: 5 out of 5 stars5/5The Hacker Crackdown: Law and Disorder on the Electronic Frontier Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Grokking Algorithms: An illustrated guide for programmers and other curious people Rating: 4 out of 5 stars4/5The Gothic Novel Collection Rating: 5 out of 5 stars5/5Get Rich or Lie Trying: Ambition and Deceit in the New Influencer Economy Rating: 0 out of 5 stars0 ratingsCoding All-in-One For Dummies Rating: 4 out of 5 stars4/5200+ Ways to Protect Your Privacy: Simple Ways to Prevent Hacks and Protect Your Privacy--On and Offline Rating: 0 out of 5 stars0 ratingsPodcasting For Dummies Rating: 4 out of 5 stars4/5Hacking : The Ultimate Comprehensive Step-By-Step Guide to the Basics of Ethical Hacking Rating: 5 out of 5 stars5/5Remote/WebCam Notarization : Basic Understanding Rating: 3 out of 5 stars3/5Beginner's Guide To Starting An Etsy Print-On-Demand Shop Rating: 0 out of 5 stars0 ratingsMore Porn - Faster!: 50 Tips & Tools for Faster and More Efficient Porn Browsing Rating: 3 out of 5 stars3/5The Cyber Attack Survival Manual: Tools for Surviving Everything from Identity Theft to the Digital Apocalypse Rating: 0 out of 5 stars0 ratingsThe Digital Marketing Handbook: A Step-By-Step Guide to Creating Websites That Sell Rating: 5 out of 5 stars5/5The Logo Brainstorm Book: A Comprehensive Guide for Exploring Design Directions Rating: 4 out of 5 stars4/5The Internet Is Not What You Think It Is: A History, a Philosophy, a Warning Rating: 4 out of 5 stars4/5How To Start A Podcast Rating: 4 out of 5 stars4/5How to Destroy Surveillance Capitalism Rating: 4 out of 5 stars4/5Introduction to Internet Scams and Fraud: Credit Card Theft, Work-At-Home Scams and Lottery Scams Rating: 4 out of 5 stars4/5
Reviews for Building Web Applications with ArcGIS
2 ratings0 reviews
Book preview
Building Web Applications with ArcGIS - Hussein Nasser
Table of Contents
Building Web Applications with ArcGIS
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
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
Errata
Piracy
Questions
1. The Bestaurants Project
Getting started with Bestaurants
Bestaurants, the best restaurants in Belize
The project statement
Proposed Interface Design
The proposed architecture
Installing ArcGIS software
Installing ArcGIS for Desktop
Installing ArcGIS for Server
Publishing a service in ArcGIS for Server
Testing the published service
Summary
2. Setting Up the Basic Web Application
Setting up the web server
Installing IIS
Testing the web server
Setting up the ArcGIS web application
Creating the HTML web page
Adding the map and loading the ArcGIS service
Customizing basic features
Default extent
Adding the legend
Summary
3. Querying ArcGIS Services
Feature layers
Adding feature layers
Identifying restaurants
Using definition query to filter map
Filtering by category
Filtering by rating
Searching and displaying restaurants by name
Displaying the query results
Interacting with the results to highlight the map
Summary
4. Rich Content and Mobile Integration
Brief introduction to relationships
A simple relationship query example
Working with Restaurants' rich content
Displaying reviews
Displaying pictures
Mobile integration
Testing the website on mobile devices
GPS integration
Summary
5. Posting Reviews, Ratings, and Photos
Configuring enterprise Geodatabase
Connecting to the Geodatabase
Copying Bestaurants' data to the server
Publishing feature service
Setting the Source to the Enterprise Geodatabase
Publishing the map document
Testing the web application with the new service
Adding ArcGIS's editing capabilities
Posting reviews and ratings
Uploading pictures
The final touches
Summary
A. Bestaurants on ArcGIS Online
Setting up ArcGIS Online account
Publishing an ArcGIS Online Map
Using online map from the JavaScript API
Summary
Index
Building Web Applications with ArcGIS
Building Web Applications with ArcGIS
Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing and its dealers and distributors, will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: November 2014
Production reference: 1121114
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78355-295-5
www.packtpub.com
Credits
Author
Hussein Nasser
Reviewers
Hani M. Basheer
Brian Small
Commissioning Editor
Kunal Parikh
Acquisition Editor
Llewellyn Rozario
Content Development Editor
Rahul Nair
Technical Editors
Mrunmayee Patil
Aman Preet Singh
Copy Editors
Janbal Dharmaraj
Laxmi Subramanian
Project Coordinator
Judie Jose
Proofreaders
Ameesha Green
Amy Johnson
Indexers
Monica Ajmera Mehta
Tejal Soni
Production Coordinator
Nilesh R. Mohite
Cover Work
Nilesh R. Mohite
About the Author
Hussein Nasser is an Esri award-winning senior GIS solution architect at Electricity and Water Authority, Bahrain. He is the author of two books on ArcGIS, Administering ArcGIS for Server and Learning ArcGIS Geodatabases, both published by Packt Publishing. In 2007, Hussein won the first place in the annual ArcGIS Server Code Challenge conducted at the Esri Developer Summit in Palm Springs, California, for using AJAX technology with ArcGIS for Server, which was not implemented back then. After his 8-year career as a GIS Architect in the leading Middle Eastern Engineering company, Khatib & Alami, where he spent time implementing various utility GIS systems based on Esri technology across the Middle East, Hussein decided to move to a more focused environment in Electricity and Water Authority back in Bahrain, his homeland. Here he can channel his expertise to develop a robust GIS utility solution that is fully integrated with the eGovernment project, which will help Bahrain march towards the smart grid. Beyond GIS, Hussein is fascinated by acute research topics; some of the papers he is currently working on are The Human API: A Software Interface to Prevent Cancer, Global Economic Crisis and Natural Disasters Quantum Detector, and Stock Market change with the Moon Phases.
I would like to thank Nada; most of this book was written in our favorite coffee shop. You wouldn't be holding this book if she wasn't there.
About the Reviewers
Hani M. Basheer is a GIS expert, Oracle Certified Professional DBA, and Esri Certified ArcGIS Desktop Associate. He has graduated as a surveying engineer with a technical Postgraduate Diploma in Esri GIS. He has over 15 years of experience in the field of Geographic Information Systems (GIS) Esri products.
Throughout his career, he has worked on several enterprise GIS projects in Egypt and Saudi Arabia; he has also worked with the Egyptian SDI project. He moved to Saudi Arabia in 2007 to work with a leading GIS company, Farsi GeoTech, dealing with many GIS projects. Hani moved to National Water Company in 2010 to establish a GIS unit for managing water and waste water utilities networks in Jeddah city.
Hani has over 10 years of experience in the field of technical training for Esri GIS products. During this period, he has delivered many successful training sessions in the Middle East to different business industries such as petroleum, mining, education, electricity, and municipalities.
Throughout his career, he has worked with most of Esri products, ArcGIS, Geodatabase, ArcGIS Server, ArcSDE, Python, Arc Objects, and Esri extensions. He has also worked with Oracle RDBMSs, where he earned four DBA OCPs, and with SAN storage, GPS, and GPS CORS systems.
I really like this book! While I was reviewing it, I found it so interesting that I could not put it down. The writer has successfully transferred his knowledge in an easy and readable way. I can guarantee you will get the best knowledge required for your GIS career by reading this book.
I would like to thank my wife, Wegdan, for her love and support. I also wish to acknowledge my loving family who is always there for me.
Brian Small is a self-confessed computer geek since age 11 and has been in the field for nearly 30 years. He earned his first computer (a Franklin Ace 500) by picking raspberries and strawberries at his family's farm, and has learned coding by typing the listings from the Nibble and Byte magazines in the 1980s. His early IT career was focused on end-user technical support and dabbling with application development. His mid-IT career focused more on administration of enterprise business systems such as work management, inventory/purchasing management, and GIS systems. Currently, his main focus is on the administration of GIS systems based on the Esri product platform and developing web mapping applications.
Outside of work, his interests are diverse, which include playing the piano, wandering the trails and backpacking in the North Cascades, building a digital weaving loom, and building his own CNC machine.
Brian has worked in the local government for over 16 years providing IT and GIS support, which included providing end-user technical support, supervision of support technicians, administration of various enterprise systems, and also as a GIS senior analyst who administers ArcGIS for Server, ArcSDE,