Building Web Applications with ArcGIS
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
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
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
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.
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 200...