[GIS] Simple javascript viewer for ArcGIS Server data

arcgis-serverjavascriptweb-mapping

I would like a simple javascript viewer which will allow end users to do the following in their browser:

  • Add layers from arcgis server by clicking an "add data" button
  • See attributes with an info tool or table veiw
  • Measure distances and areas
  • Draw points, lines, polygons
  • Save the state of their map for viewing later

Is there a javascript template for ESRI javascript API that can do this?
Basically I want a local copy of the ArcGIS online viewer for users to access our internal ArcGIS Server data.
Everything I have found references ArcGIS Online, and not a local Arcgis Server.

Thanks!

Best Answer

There is a good one here: https://github.com/DavidSpriggs/ConfigurableViewerJSAPI.

Click here to View Live app. Includes:

  • Growler
  • Draw
  • Geolocation
  • Advanced
  • Print
  • Help
  • Measure
  • Directions
  • Editor
  • Scalebar
  • Bookmarks

Another one is in another answer, Esri CIS did a great work developing such an application. Pity it is in Russian.

Most of other apps I've seen tend to be more ArcGIS Online specific: here you can find some of the templates (some are really good and would cover most of the needs).

Esri has also released a bunch of JS apps with some viewer-like functionality which you could reuse for building own viewer with perhaps a more complete functionality set. These apps can be found at ArcGIS for Local Government resource center. Very many of them have a live version to play with and include simple geocode search function, basemap gallery, and print.

Related Question