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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
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
Estimated delivery fee Deliver to Ukraine

Economy delivery 10 - 13 business days

$6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

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 Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
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

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Ukraine

Economy delivery 10 - 13 business days

$6.95

Premium delivery 6 - 9 business days

$21.95
(Includes tracking information)

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 the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela