Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Building Web Applications with ArcGIS
Building Web Applications with ArcGIS

Building Web Applications with ArcGIS: Build an engaging GIS Web application from scratch using ArcGIS

eBook
€8.99 €16.99
Paperback
€20.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building Web Applications with ArcGIS

Chapter 2. Setting Up the Basic Web Application

In the previous chapter, we introduced the Bestaurants project. We proposed an interface that gave us a good idea of what the web application will look like based on the project requirements. We also designed an architecture, which illustrated the different components that the project will consist of. We haven't done any development but we managed to set up ArcGIS for Desktop and ArcGIS for Server, and published the Bestaurants database as a service.

In this chapter, we will set up the web server on which the web application will run. We will spend the rest of the chapter implementing the interface we designed in the previous chapter and will add some ArcGIS code that will connect to the service we have published. We will slowly continue adding functionalities to the web application. This theme will continue throughout the book until the web application is completed in the last chapter.

For this chapter, it is recommended that...

Setting up the web server

If you have developed websites before, you know that you need to host your site on a web server such as Apache and Internet Information Server (IIS). I will be using IIS, specifically Version 7, in the course of this book; however, feel free to use any other web server you prefer.

Note

Apache is an open source web server which can support multiple operating systems.

IIS stands for Internet Information Server which is the proprietary web server for Microsoft Windows.

Installing IIS

Installing IIS is easy; however, the installation procedure differs based on the operating system you are using. The following steps show how to install it on Windows Server:

  1. Open Server Manager, you can find it on the taskbar by default or you can type ServerManager.msc in the run dialog box to access it.
  2. From the Server Manager tree on the left-hand side, right-click on the Roles node then click on Add Roles as shown in the following screenshot:
    Installing IIS
  3. Click on Next on the Before you Begin page...

Setting up the ArcGIS web application

As you may know, any web application can be accessed through an address and a port. This is how you uniquely define a website. For example, www.packtpub.com, which can also be written as www.packtpub.com:80, this means the website is hosting on the default HTTP port 80. Port 80 is the default HTTP port and that is why browsers ignore it.

Note

The Address consists of the IP address, hostname, or domain name of the web server where the web application is running. The examples are 192.168.1.2, ARCGISMACHINE or www.packtpub.com. You can get the IP address by using the IPConfig command in the command prompt.

The Port is an integer number assigned to a server that acts as a door to which a client can connect through. Ports can be secured and blocked with the help of a firewall to prevent malicious access by unauthorized users.

In this section, we will first write the HTML web page; for this you will need to know some basic HTML code. Then we will inject the HTML...

Customizing basic features

In this section, we will learn how to add and configure some basic features to our new map that will help our map get richer.

Default extent

The extent is a boundary of a map that limits what the users see. By default, when you publish a service, the current extent in your data gets saved in the service. That is why when you added the map to our application, we got a partial view and we had to zoom out to see all other restaurants. You will see that sometimes you will need to change the default extent, for instance, when your users want to see the full extent of the country, or sometimes each user wants to zoom to their working area when they run the application. In this section, we will learn how to change the default extent. We want to set the extent of our map to -88.27, 17.47, -88.16, and 17.54, which represents the center of Belize city:

  1. Open the mybestaurants.html file with Notepad ++ if it is not already opened. Since the extent is a set of points, it is required...

Summary

In this chapter, we created a basic ArcGIS web application. We installed and configured the IIS web server and created a basic web application. Then we dove through the ArcGIS JavaScript API where we learned how to add a map and load a service. We then customized the map to modify the default extent and add the legend.

In the next chapter, we will work more with advanced function of the ArcGIS JavaScript API to query the Bestaurants service and retrieve information.

Left arrow icon Right arrow icon

Description

If you are a GIS user or a web programmer, this book is for you. This book is also intended for all those who have basic web development knowledge with no prior experience of ArcGIS and are keen on venturing into the world of ArcGIS technology. The book will equip you with the skills to comfortably start your own ArcGIS web development project.

What you will learn

  • Script essential ArcGIS JavaScript code to consume with ArcGIS services
  • Edit ArcGIS services by adding new records, update existing ones and upload attachments
  • Consume GIS services from multiple crossplatform endpoints that include mobile and tablet for field users
  • Query ArcGIS services with related data and display the information on your website
  • Communicate with the services to query, retrieve, and display the results
  • Use the ArcGIS JavaScript API to communicate with ArcGIS Online as a backend database
  • Test your website on mobile devices

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 19, 2014
Length: 138 pages
Edition : 1st
Language : English
ISBN-13 : 9781783552962
Category :
Languages :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 19, 2014
Length: 138 pages
Edition : 1st
Language : English
ISBN-13 : 9781783552962
Category :
Languages :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 63.97
Learning ArcGIS Geodatabases
€21.99
Building Web Applications with ArcGIS
€20.99
Developing Mobile Web ArcGIS Applications
€20.99
Total 63.97 Stars icon
Banner background image

Table of Contents

7 Chapters
1. The Bestaurants Project Chevron down icon Chevron up icon
2. Setting Up the Basic Web Application Chevron down icon Chevron up icon
3. Querying ArcGIS Services Chevron down icon Chevron up icon
4. Rich Content and Mobile Integration Chevron down icon Chevron up icon
5. Posting Reviews, Ratings, and Photos Chevron down icon Chevron up icon
A. Bestaurants on ArcGIS Online Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.8
(4 Ratings)
5 star 75%
4 star 25%
3 star 0%
2 star 0%
1 star 0%
Some guy who occasionally shops online Jan 02, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This is a very good book. I’ve been a software developer for more than 2 decades, working with a variety of platforms, languages, operating systems, etc., more on back-end processing and desktop applications, but also internet technologies. I recently completed a graduate certificate in GIS and have been looking for references that explore programming from an ESRI/web context. This book provides a great explanation of the fundamentals in a step-wise manner. The detailed style and accompanying explanations are not unlike what one finds in books like “Mastering ArcGIS” and “Getting To Know ArcGIS”, an approach that some people dislike because of the fine granularity, but one I personally find great. I often write highly-detailed instructions for myself when learning a new product or procedure, full of steps, screen captures and menu selections that I can refer to again when I have to repeat the task later on, so Nasser’s book with its quite similar approach suits me to a tee.With ESRI’s introduction of Web App Templates, etc. that often mask what’s going on, I’m still trying to formulate a better picture of what’s happening under the covers, directory structures, how things are organized, how to use the REST interface to automate the upload and updates of components through backend processing rather than manually through online utilities like those at www.arcgis.com, WMS vs. WFS, and so on. This book is helping to clarify one aspect of the picture, providing useful techniques that may be commonly applied to many projects. There’s a broad landscape to explore, one that could definitely benefit from more publications from Mr. Nasser.
Amazon Verified review Amazon
Mareska Mar 01, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This was a very good book, short and concise for the subject matter. This book leads the reader through a "Job Request" from start to finish utilizing the ArcGIS JavaScript API; this is a unique approach and I enjoyed it greatly. The code is written in a linear process while dealing with what the customer wants as an end product. Beginning with the basic database connections and a map service, the book leads you logically step by step to the final web page product. This is not a visually appealing web page designers guide, there are other references for coding those, but a wonderful, easily readable, book for integrating ArcGIS into a web platform.
Amazon Verified review Amazon
IrfanClemson Feb 08, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Worth its value in code samples alone!I have bought every book published by Nasser and this is the latest one. He has a gentle style of tutoring. He doesn't go deep in details and I think his books can be termed from Beginner-to-Intermediate level. And that is fine for my needs.This particular book builds upon Nasser's ArcGIS GeoDatabase book: The Belize 'Bestaraunt' database created in that book is put into use in a web application based on ArcGIS JavaScript APIs.The book walks you through installing ArcGIS Desktop to explaining the Bestaurant data model to Publishing the data to an enterprise SQL Server database. Once those are done then the actual web application tutoring begins. The end result is a functional enterprise geodatabase driven, real time data web application.Yes, you can find all this info online but I doubt you will find any 'free' sources which explain a full featured web application and its underlying (backend) software in as coherent and easy way as Nasser's book does.I think the book is well worth the code samples alone. 5 Star!
Amazon Verified review Amazon
Kaiser Mitch Apr 21, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Excellent book for those just starting out with making ArcGIS web applications. It does a good job with setting up a simple enterprise system to host a online map application. This includes setting up a server, uploading map services, then displaying those services using the javascript API.However, the topics are really basic. I wish that it some more topics that went deeper into some more advanced topics in the API such as geoprocessing services, renders/symbols (queries needed to create symbology), and some more instances with using geometry. There can easily be more than 110 pages of material, but it is an informative short book.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.