Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Developing Mobile Web ArcGIS Applications
Developing Mobile Web ArcGIS Applications

Developing Mobile Web ArcGIS Applications: Learn to build your own engaging and immersive geographic applications with ArcGIS

eBook
$9.99 $16.99
Paperback
$26.99
Subscription
Free Trial
Renews at $19.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

Developing Mobile Web ArcGIS Applications

Chapter 2. Understanding Mobile Frameworks and APIs

In this chapter, we will discuss some of the basic ideas behind mobile web development: popular frameworks, design paradigms, and the Geolocation API.

The frameworks and APIs discussed in this chapter will form the base for the code samples and discussions in later chapters. The topics covered in this chapter are as follows:

  • Esri's ArcGIS JavaScript API
  • Dojo and jQuery Mobile
  • Bootstrap and Responsive design
  • Geolocation API

Esri ArcGIS JavaScript API

The ArcGIS JavaScript API provides a rich set of tools to build mobile ArcGIS apps. As we will discuss later, it is built on the Dojo framework. The API can be used both for mobile and desktop web application development. In this chapter, we will introduce Dojo and other frameworks, APIs, and libraries relevant to ArcGIS JavaScript development.

Note

Esri describes the ArcGIS API for JavaScript at https://developers.arcgis.com/javascript/jshelp/ as follows:

"The ArcGIS API for JavaScript is a lightweight way to embed maps and tasks in web applications. You can get these maps from ArcGIS Online, your own ArcGIS Server or others' servers."

The API documents can be found at the website.

Dojo and jQuery mobile

In Chapter 1, Introduction to Mobile Web ArcGIS Development, we discussed the difference between frameworks, libraries, and toolkits. These terms are somewhat subjective. At the end of the day, these are all built on JavaScript. They are simply structures and tools that make development easier and faster.

Mobile development conversations in relation to these structures and tools often revolve around the use of Dojo and jQuery Mobile. It's worth spending a little time discussing both Dojo and jQuery.

Note

The ArcGIS API has been built using Dojo. However, as we will show later, jQuery Mobile can still be used with the API.

Dojo

Dojo is one of the many open source JavaScript frameworks that is used for constructing dynamic web user interfaces. At its core, it is a simple collection of JavaScript files. One line in your code referencing dojo.js is all you need to access these files:

 <script src="//ajax.googleapis.com/ajax/libs/dojo/1.9.4/dojo/dojo.js"
 ...

Dojo and Esri's ArcGIS API for JavaScript

In general, it makes sense for developers to take advantage of Dojo, jQuery Mobile, or the equivalent JavaScript tools. Normalizing browser inconsistencies, DOM APIs, event management tools, and much more are provided by these frameworks. Esri has chosen Dojo in favor of jQuery for their mapping APIs. This makes for a strong argument to use Dojo in your mobile ArcGIS development.

Note

The code examples in this book use Dojo. More information about Dojo and the GFX library can be found at https://dojotoolkit.org/documentation/.

Why did Esri choose Dojo? According to one of their senior engineers, because:

Note

"Dojo provides a more extensive set of features and tools, has a mature class/module system baked into the API as well as a robust widget lifecycle system. There are many things attractive about Dojo, including support for vector graphics via dojox.gfx."

Esri's official reasons for choosing Dojo as the foundation for the ArcGIS...

Bootstrap and Responsive design

As mentioned in Chapter 1, Introduction to Mobile Web ArcGIS Development, Bootstrap is a very popular framework for building web interfaces. It is made up of a combination of JavaScript, CSS, and fonts. It supports both CSS3 and HTML5. The framework considers both device limitations and user behavior. Key to the popularity of Bootstrap is its responsive system. This allows developers to build a single mobile web app that works well across a variety of devices with different screen sizes. This means a web app that looks good on the largest monitor down to the smallest smartphone.

The following screenshot illustrates the Responsive design of a web app across varied screen resolutions:

Bootstrap and Responsive design

Responsive Design – One code base for all devices

Bootstrap implements a fluid grid system. This breaks the screen into columns and uses percentages instead of pixels for column widths. A mobile ArcGIS app built using Bootstrap adapts to different screen sizes using this fluid...

The Geolocation API

One of the most fundamental requirements of any mobile ArcGIS app is its ability to enable users to find and show their current location on a map. This is where the Geolocation API comes in handy.

Note

The Geolocation API is a browser API that's part of JavaScript, but it is not related to ArcGIS.

On mobile devices, current location is derived from either GPS or cell tower triangulation. The Geolocation API taps into this data. Built-in security means that users need to provide permission before this functionality can be used in an application. Usually a popup will be displayed that will ask "The website x would like to use your current location". Clicking on the Allow button will give permission to the application. Building apps with the Geolocation API allows users to see and track their position on a map, and it is shown in the following screenshot:

The Geolocation API

Showing current location using the Geolocation API

Most modern mobile browsers support the Geolocation API...

Esri ArcGIS JavaScript API


The ArcGIS JavaScript API provides a rich set of tools to build mobile ArcGIS apps. As we will discuss later, it is built on the Dojo framework. The API can be used both for mobile and desktop web application development. In this chapter, we will introduce Dojo and other frameworks, APIs, and libraries relevant to ArcGIS JavaScript development.

Note

Esri describes the ArcGIS API for JavaScript at https://developers.arcgis.com/javascript/jshelp/ as follows:

"The ArcGIS API for JavaScript is a lightweight way to embed maps and tasks in web applications. You can get these maps from ArcGIS Online, your own ArcGIS Server or others' servers."

The API documents can be found at the website.

Left arrow icon Right arrow icon

Description

This guide is invaluable to those just starting out with GIS development but will also benefit GIS professionals wishing to expand their development skills to include mobile apps.

Who is this book for?

This guide is invaluable to those just starting out with GIS development but will also benefit GIS professionals wishing to expand their development skills to include mobile apps.

What you will learn

  • Set up your development environment and understand the key frameworks and tools needed to build mobile ArcGIS apps
  • Add advanced tools to your base application including features such as address search
  • Provide crossdevice support via responsive design using the Bootstrap framework
  • Integrate your mobile ArcGIS application with ArcGIS online
  • Build high performance, attractive mobile applications using the lightweight, browserbased ArcGIS Server JavaScript API
  • Get acquainted with the entire process of creating mobile apps and integrating them with other platforms
  • Leverage HTML and JavaScript techniques for mobile development
  • Create immersive and engrossing views and widgets
  • Obtain finegrained control to provide secure, reliable GIS services

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 27, 2015
Length: 156 pages
Edition : 1st
Language : English
ISBN-13 : 9781784392000
Category :
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 : Feb 27, 2015
Length: 156 pages
Edition : 1st
Language : English
ISBN-13 : 9781784392000
Category :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.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
$199.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
$279.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 $ 102.97
ArcPy and ArcGIS: Geospatial Analysis with Python
$48.99
Developing Mobile Web ArcGIS Applications
$26.99
Building Web Applications with ArcGIS
$26.99
Total $ 102.97 Stars icon
Banner background image

Table of Contents

8 Chapters
1. Introduction to Mobile Web ArcGIS Development Chevron down icon Chevron up icon
2. Understanding Mobile Frameworks and APIs Chevron down icon Chevron up icon
3. Building Your First Mobile ArcGIS Application Chevron down icon Chevron up icon
4. Advancing the Basic Mobile ArcGIS Application Chevron down icon Chevron up icon
5. Providing Cross-device Support with Responsive Design Chevron down icon Chevron up icon
6. Integration with ArcGIS Online Chevron down icon Chevron up icon
7. Developing Hybrid ArcGIS Mobile Applications with PhoneGap Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(7 Ratings)
5 star 42.9%
4 star 28.6%
3 star 14.3%
2 star 14.3%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Massera Riccardo Mar 29, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I enjoyed reading this book, it is aimed to GIS developers that would like to learn how to develop websites and mobile applications that interact with Esri's ArcGIS API.The first part is a nice introduction that explains how to approach mobile applications development in contrast with desktop web development and the basics of the dojo and ArcGIS frameworks.The author approach is hands on and the examples help the reader to learn and develop step by step: things are explained in a concise but effective manner starting from the basics and building on it to obtain fully functional applications.One thing I appreciated is that only the relevant code to understand the key concepts is included and commented in the book, while there are many links to examples on the book website, keeping the book compact in size, not bloated with code and leaving more space for useful pictures and screenshots.One chapter is devoted to explain what changed with the recent introduction of ArcGIS Online SaaS service and how you can develop a GIS application using it; this chapter is admittedly only a brief introduction to the main concepts to get started with ArcGIS Online.The final part is perhaps the most interesting, since it explains how get started with PhoneGap/Cordova and how to develop a cross-platform mobile GIS app using the same APIs seen in the first part of the book.In the end, I would recommend reading this book to programmers that are looking for a graceful introduction to ArcGIS web and mobile development and would like to experiment with it.
Amazon Verified review Amazon
ruben Apr 11, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Great book I have not seen any book like this, it is something new for ne.I appreciate the author because it wrote the book in a logical way, it is something important because we can aply the codes in a solutionVery interesting book very new technologies in mobile development.
Amazon Verified review Amazon
Matteo Apr 14, 2015
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This book let you learn how to set up a map interface for any of your mobile web apps, sometimes you get overloaded by code but its sort of a given in a coding book. Its not too complex to read too so you can easily read it in a couple of sittings(its short but in a good way) without studying it too much. If you are going to set up any world map in your web site and you are not going to just paste google maps you need to give this book a shot
Amazon Verified review Amazon
Francois Goulet Mar 11, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I really appreciated “Developing Mobile Web ArcGIS Applications”. The book is beginners driven, so the author explains all the basics. Everything seemed covered without going in too much technicalities. The book is focused in giving us practical skills, that could be extended after.The first thing I liked is that the author takes time to explain the difference of designing a web application on a mobile platform instead of a desktop browser, something that doesn’t always come to mind at first.The book covers the basic Esri, Bootstrap and Geolocation APIs, without going in to much details and the tutorial for our “first” ArcGIS mobile web application is concise and well written. It’s easy to follow and to create that app and also provides good practices in web app development.The step-by-step tutorials allows us to add the most popular features of a web map application, like popups, legend, a search tool and a geocoding tool as well as developing a cross-platform/cross-device application.I also appreciated the PhoneGap introduction. PhoneGap is a free opensource framework that allows us to create native mobile apps from html and javascript. I’m looking forward to try that one!I would have liked a part on editing features, if only attributes. It’s mentioned on the book, but never explained how to do it. There’s plenty of example of that on the web, but it would have been nice to have an example in the same reference.
Amazon Verified review Amazon
E. Anderson Mar 27, 2015
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
There are a number of books, many excellent, dealing with developing GIS websites using the ArcGIS API for JavaScript API and their number is growing. While a few of these books have a chapter or two about mobile GIS websites, few were devoted solely to the subject; "Developing Mobile Web ArcGIS Applications" is one of them.(Edit: I had forgotten another title dealing with mobile ArcGIS Server applications, "Building Web and Mobile ArcGIS Server Applications with JavaScript" [http://www.amazon.com/dp/1849697965], also published by Packt Publishing. I haven't read it yet but felt it should be mentioned.)I've read through this and wasn't disappointed. The first item that excited me was the use of version 3.11 of the JSAPI in the code. This is not far behind the current version of 3.13 (as of 3/27/2015) and helps; make the sample code relevant and usable instead of having to translate something from v1.x or even 2.xThe second item was the really good introductory to responsive web design (RWD) - essential for designing well-behaved mobile apps in general - and BootStrap.As for the content layout, I appreciated the development of the core features first (e.g. layout, basemaps, adding feature layers, handling events, and determining geolocation) followed by more advanced concepts (e.g. pop-ups, legends, finding features, and searching addresses). My only gripe is a bit more focus is needed on finding features and address searching as these are core features of any GIS website most users would be familiar with and looking for.The introductory chapter to ArcGIS Online, while helpful, was also a little too brief.I skimmed the last chapter dealing with creating a hybrid app using PhoneGap as it's not immediately applicable to my needs. It still looks interesting though.All in all, I'd give this very up-to-date and worthwhile book a solid 4.5 out of 5 stars (if I could).I should also note that while there are many good technical books out there, few are fun technical books. This one falls in that latter group for me.Another related book that I found fun as well is "Google Maps JavaScript API Cookbook" [http://www.amazon.com/dp/B00HJR6RD6], again published by Packt Publishing.
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.