View REST descriptions for secure services in webmap

639
1
02-14-2014 10:51 AM
SimonRoss_User
Occasional Contributor
We have a custom javascript application template (built up from the basic viewer template) that we're using to view ArcGIS Online webmaps.  Each webmap typically contains more than one dynamic map service (hosted on our own ArcGIS Server 10.1 instance). 

When referencing the services in ArcGIS Online our preference is to embed the secure login credentials.  When we do this the url shown in ArcGIS Online is no longer referenced to our server (i.e. http://mycompany/arcgis/rest/services) but instead points to https://utility.arcgis.com/usrsvcs/rest/services

What we would like to be able to do in the application is provide users the ability to view both map service and layer descriptions (visible in our rest directory) so for example a user can click on the map service or layer name in the map contents and see a pop-up window showing e.g. the description, copyright, extent; but not having to go to a new browser window and view in rest.

Have spent some time reviewing samples, the API reference and testing but have not been able to retrieve any of this information.  If we don't embed the secure credentials in ArcGIS Online then we can at least query the correct rest url but can't use this to get the selected rest information we require.  Any advice on how to tackle this (or even better, an actual solution!) would be welcome
Thanks
0 Kudos
1 Reply
SimonRoss_User
Occasional Contributor
I should have added that layer level descriptions within the map service is a nice to have.  At this point the minimum we're looking for is being able to get each dynamic map service description displayed (to be clear - not the webmap description, each webmap has multiple map servcies).  We could therefore potentially retrieve that information from the service description within ArcGIS Online if that's easier to setup
0 Kudos