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 a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
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 : 9781784395797
Category :
Tools :

What do you get with a Packt Subscription?

Free for first 7 days. $19.99 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

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

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.