Server newbie:  non-existent(?) JS/HTML viewer vs ArcGIS.com viewer vs other?

562
1
02-29-2012 07:02 AM
DavidBollinger1
New Contributor II
Looking for hints as to the best "kick-start" viewer/sample for JS API development.  (we'll NOT be doing flex/silverlight, thx)

We have extensive experience with our own custom viewers for ArcIMS but are just now moving towards ArcGIS Server, and all the redevelopment effort that entails, and are somewhat confused by the possible "starting points" for such development.

It appears there is no de facto JS-API viewer.  There are samples, yes, though none appear very functional as is, not much beyond: "here's a map, look at it, do a slippy scroll, woohoo!" or a very simple single function identify -type sample.

The ArcGIS.com viewer *appears* to be the one ESRI is pushing, but initial investigations seem to indicate that you're required to first register your service through ArcGIS.com, then add THAT service to the app.  So, no support for directly accessing local internal services?  (or if so, how?)  Is it then unsuitable as a base for inTRAnet projects?

Or is there some OTHER "base" viewer that we've not noticed entirely?

Thx for any advice.
0 Kudos
1 Reply
MattMoyles
New Contributor III
There is no official esri js viewer like the flexviewer application but really you don't need it. Dojo is a wonderful framework in itself. Through dojo you will have the tools to build small or large-scale apps without pulling your hair out. If you have a more "in-depth" application I would recommend using the dojo boiler plate. The latest dojo boilerplate requires dojo > 1.7 but the esri JS api is currently using the older 1.6.1 version. Dojo 1.6 and 1.7 are a little different so we don't blame esri for not having the api AMD ready in the short amount of time it is been out.

Here is a link to the mvc style boilerplate project. I have been using this for a few months now and am loving it.

http://blog.rebeccamurphey.com/a-dojo-boilerplate
github: https://github.com/rmurphey/dojo-demo

What you want to do here is build your esri functionality 'into' the boilerplate code. Start by trying to work one of the samples into this framework.

In the future once esri moves over to dojo 1.7.1 I would recommend using this dojo boilerplate project instead: https://github.com/csnover/dojo-boilerplate
0 Kudos