Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Mastering ArcGIS Server Development with JavaScript
  • Table Of Contents Toc
Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

By : Doman
3.7 (3)
close
close
Mastering ArcGIS Server Development with JavaScript

Mastering ArcGIS Server Development with JavaScript

3.7 (3)
By: Doman

Overview of this book

ESRI and its ArcGIS line of software have been an industry leader in digital map production and publication for over 30 years. ArcGIS Server lets you design, configure, and publish maps that can be viewed and edited through the Internet. After designing basic maps, you may want to find out new and innovative ways to represent information using these maps. In this book, you'll work through practical examples, experiencing the pitfalls and successes of creating desktop and mobile map applications for a web browser using the ArcGIS Server platform. The book begins by introducing you to ArcGIS Server and ESRI's JavaScript API. You'll work with your first web map and then move on to learn about ESRI's building blocks. A Dojo AMS style widget will help you create your own widgets for a map and then see how to collect geographic data. Furthermore, you will learn different techniques such as using Dojo Charts to create charts and graphs to represent your data. Then you will see how to use ESRI JavaScript API with other JavaScript libraries and different styling methods to make your map stand out. By the end of the book, you will discover how to make your application compatible with different devices and platforms and test it using testing libraries.
Table of Contents (13 chapters)
close
close
12
Index

Using Dojo Charts in our application


Our census application from previous chapters could use some visual appeal when it comes to presenting data. We'll make our first attempt at adding charts and graphs using the dojox/charting library. We'll apply the graphs to the map popup whenever the user clicks on a census block group, county, or state. The census blocks don't have enough information for us to graph.

Loading the modules

Since our graphs are currently limited to our census application, we need to update the modules in our custom y2k/Census module definition:

  1. We'll start by adding dojo/on to handle the map popup events.

  2. We'll add the default chart object along with a pie chart and a bar chart module.

  3. We'll add the PrimaryColors theme and SimpleTheme to create our own custom color template.

  4. Finally, we'll add a highlight and a tooltip action to let the user read the results when they hover over parts of the graphs.

  5. It should look a bit like the following:

    define([…
      "dojo/on",
      "dojox/charting...
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Mastering ArcGIS Server Development with JavaScript
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon