Book Image

Mastering ArcGIS Server Development with JavaScript

By : Raymond Kenneth Doman
Book Image

Mastering ArcGIS Server Development with JavaScript

By: Raymond Kenneth Doman

Overview of this book

Table of Contents (18 chapters)
Mastering ArcGIS Server Development with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Features of the API


The ArcGIS JavaScript API provides many of the tools necessary to build robust web map applications. It can generate slippy maps, interactive maps that let the user pan and zoom in. The behavior is similar to Google or Bing Maps, but with your data. You're in control of the content, from background imagery to markers and popup content. With ArcGIS Server, you have control over how the maps are laid out, and which colors, styles, and fonts you use. The API also comes with custom elements that let you do everything from drawing on the map, searching for data, measuring things on the map, and printing the map in multiple formats.

The ArcGIS JavaScript API is built on top of the Dojo framework (www.dojotoolkit.org).You also have access to an extensive package of free HTML form elements, controls, and layout elements for your web applications because Dojo comes packaged with the API. These Dojo user controls have been tested in multiple browsers, and include an entire library of items that can be used to make a mobile application. While the ArcGIS JavaScript API is built with Dojo, it also works well with other libraries such as jQuery and AngularJS.

The ArcGIS JavaScript API was designed and built, along with an ArcGIS API, for Flash and Silverlight. Unlike other APIs which require specialized compilers, plugins, and related software, the ArcGIS JavaScript API can be written with a simple text editor and viewed on most common browsers without any special plugins. Since mobile browsers, such as Safari for iPad and Chrome for Android, do not support third party plugins, the ArcGIS JavaScript API is the preferred choice for creating interactive map websites for the mobile platform.

Tip

Now, it is possible to code a website using Windows Notepad, just like it's possible to hike up Mount Everest without a guide. But when things go wrong, you will probably want to use a free text editor with syntax highlighting and other features, such as NotePad++ (http://notepad-plus-plus.org/), Aptana Studio 3 (http://www.aptana.com/products/studio3.html), or Visual Studio Code (http://code.visualstudio.com) for Windows, Brackets (http://brackets.io) or Textmate (http://macromates.com/) for Mac, or Kate (http://kate-editor.org/), Emacs (http://www.gnu.org/software/emacs/), or vim (http://www.vim.org/) for Linux. If you want text editors that aren't free, but offer more features and support, you can check out Sublime Text (http://www.sublimetext.com/) or Webstorm (http://www.jetbrains.com/webstorm/).