javascript API example for consuming an ArcGIS 10 Image Service

490
5
Jump to solution
04-16-2012 01:23 PM
Highlighted
New Contributor II
I created a large mosaic image service using ArcGIS Server 10.  I'm looking for a javascript API example to select and render individual rasters datasets from that mosaic.  I see the REST API for the service, but thought there might be an easy way to integrate this into my existing javascript client.
Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
Frequent Contributor II
that was easy... I just constructed a REST call to my image service with the appropriate parameters.


That's what you'll have to do...we don't have any classes in the API (yet) to work with ArcGIS Server Image Services.

View solution in original post

Reply
0 Kudos
5 Replies
Highlighted
New Contributor II
that was easy... I just constructed a REST call to my image service with the appropriate parameters.  I am getting a strange darkening of my base map image however.
Reply
0 Kudos
Highlighted
New Contributor III

Can you post the code please?

Reply
0 Kudos
Highlighted
Frequent Contributor II
that was easy... I just constructed a REST call to my image service with the appropriate parameters.


That's what you'll have to do...we don't have any classes in the API (yet) to work with ArcGIS Server Image Services.

View solution in original post

Reply
0 Kudos
Highlighted
MVP Frequent Contributor
Todd, can you post your code so we can  see what's the problem?
In 10.1 you have more functionality in rest for image server http://resourcesbeta.arcgis.com/en/help/rest/apiref/index.html
Reply
0 Kudos
Highlighted
New Contributor III
It would be great to see the code.  I'm trying to do the same thing, but am really new to javascript.  I'm not sure what you mean a REST call.

I'm actually trying to call the specific image by clicking on a row in a datagrid.  Is that even possible?
Reply
0 Kudos