Make ArcGIS JavaScript Sample Viewer support more than WGS84
January 21, 2009 3 Comments
Users not wanting to use WGS84? Inconceivable!
So you’ve downloaded the JavaScript Sample Viewer from ESRI and want to use it with your own services? Well make sure those basemap services are WGS84 because they won’t show up otherwise. You aren’t losing your mind when you see nothing in the viewer, just republish them as WGS84.
It would probably be a good idea for ESRI to update their docs to reflect this.
Update: Jithen, unlike me, wasn’t happy about having to use WGS84 and he has figured out a way to get it to work.

Not inconcieveable at all. If you use ArcGIS with a WMS, it will always request the map in WGS84 even though the service does not advertise WGS84 as a supported SRS. One would assume that ArcGIS would pay attention to the capabilities document in the name of interoperability and all that. You have to set the view properties in ArcGIS to the correct SRS to force it to use the advertised SRS.
Ive been playing with the viewer and showing my map services that are in British National Grid projection.
It puts them in the right place, but there is an overhead as it takes a bit of time to re-project them.
This is the same for ArcGIS Explorer.
Kluge-tastic as usual, but it’s virtually free so meh… Having to hack around in this viewer will raise javascript skill levels among nubs (myself included).