Javascript API

Class 9 and class 10 includes many Javascript/HTML samples. From this page, you can access each of those samples. For additional information, go to the Class pages on Github.

Class 9 on Github »Class 10 on Github »

Javascript Function

This demostration shows you how to use a simple user-defined function. Open the Console using F12 to see the results of the function.

View demo »

Javascript if

This demostration shows you how to use an 'if' statement for simple flow control. Open the Console using F12 to see the results of the function.

View demo »

Javascript for

This demostration shows you two different ways to use the 'for' statement in javascript.

View demo »


1: Simple Map

The first demonstration from class. Add a home button and geocoder to a simple map.

Start »Completed »

2: Add a Layer

In this demostration, you use your own ArcGIS Server layer, then add a custom popup and legend.

Start »Completed »

3: Query Task

This demonstation adds an asynchronomous query task. Note: The initial version will not load!

Start »Completed »

4: Renderer

This demonstration uses a simple color ramped renderer.

Start »Completed »

5: Proportional Symbols for Points

Using a proportional symbols renderer with custom breaks.

Start »Completed »

6: Geocoder Code Snipper

Use this to practice using JSHint.

Code Snippet »

7: Geocoder Widget Take 2

Demo 1 after using JSHint for debugging.

Start »Completed »