Book Image

Building Web and Mobile ArcGIS Server Applications with JavaScript

By : Eric Pimpler
Book Image

Building Web and Mobile ArcGIS Server Applications with JavaScript

By: Eric Pimpler

Overview of this book

<p>ArcGIS Server is the leading software for developing both web and mobile GIS applications. There are a number of programming languages that you can use to develop applications with ArcGIS Server including JavaScript, Flex, and Silverlight. However, the ArcGIS API for JavaScript is the preferred way of developing your custom applications for ArcGIS Server since it can be used for both web and mobile application development. It’s easy to use and doesn’t require the use of a browser plugin.</p> <p>This tutorial-based guide provides you with hands-on experience in developing custom web and mobile ArcGIS Server applications with step-by-step style exercises. Along with introducing you to the HTML/CSS/JavaScript technology stack, you will learn to add intuitive geographic layers of information to your map, interactive query and display of spatial data, add user interface widgets, access geoprocessing tasks, and many more in your own web and mobile GIS applications.</p> <p>With this practical, hands-on guide, you will be able to develop fully-functional online GIS applications with ArcGIS Server using the ArcGIS API for JavaScript. After creating your own map, you will explore how to add geographic layers from a variety of sources including tiled and dynamic map services, add graphics to the map, and stream geographic features to the browser using a FeatureLayer.</p> <p>Most applications include the specific functionalities implemented by ArcGIS Server as tasks. You’ll learn how to use the various tasks provided by ArcGIS Server including spatial and attribute queries, identification of features, finding features by attribute, and more. Geocoding and geoprocessing tasks are covered in-depth to help you accomplish your task in GIS. Finally, you’ll learn just how easy it is to integrate ArcGIS.com content into your custom developed applications.</p> <p>This comprehensive guide quickly advances through probing programmatic techniques for building web and mobile GIS applications which will make application development a lot easier!</p>
Table of Contents (20 chapters)
Building Web and Mobile ArcGIS Server Applications with JavaScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Additional Dojo layout elements


Each region of BorderContainer (top, bottom, left, right, and center) can be filled by a Dojo layout element. These elements are AccordionContainer, SplitContainer, StackContainer, and TabContainer. You can also create a nested set of BorderContainer objects to further divide the available layout space.

Child elements are placed inside a region through the use of the region attribute, as seen in the following code example. Notice that in the highlighted section, the region attribute is set to left. This will create ContentPane in the left region. ContentPane is a very basic layout element and is used as a container for other widgets. In this case, it is going to hold TabContainer (highlighted), which contains additional ContentPane objects.

<div dojotype="dijit.layout.ContentPane" id="leftPane" region="left">
  <div dojotype = "dijit.layout.TabContainer">
    <div dojotype="dijit.layout.ContentPane" title = "Tab 1" selected="true">
      Content for the first tab
    </div>
    <div dojotype="dijit.layout.ContentPane" title = "Tab 2" >
      Content for the second tab
    </div>
  </div>
</div>

The following screenshot illustrates the location and content that was generated using ContentPane and TabContainer:

AccordionContainer holds a set of panes whose titles are visible, but only one pane's content is visible at a time. As the user clicks on a title, the pane contents become visible. These are excellent user interface containers that can hold a lot of information in a small area.

Esri has provided a number of sample layouts that you can use to get started with the layout of your application. The help page for the ArcGIS API for JavaScript includes a Samples tab containing dozens of sample scripts you can use in your application including various layout samples. In the next section, you'll learn how to integrate one of these sample layouts into your application.