Javascript Api Identify Raster pixel value

11955
22
Jump to solution
08-20-2014 07:02 AM
BeakalGobena
New Contributor II

I have this map loaded using the ArcGIS API

http://ags.servirlabs.net/ArcGIS/rest/services/ReferenceNode/TRMM_30DAY/MapServer

I want to let the user click on the raster layer and display the pixel value at that specific x,y location in a pop up window. While googling I found this example

https://developers.arcgis.com/javascript/jssamples/find_popup.html

explaining how to use IdentifyTask. Can I use this feature for a raster layer plus the data is already loaded do I need to make an extra request to get the values every time the user clicks on the layer?

0 Kudos
22 Replies
GIS
by
New Contributor

Hi,
Does anybody know if a custom widget for ArcGIS Online with this functionality has been created in the mean time and if so, where I could find it?

by Anonymous User
Not applicable

Greetings GIS_@IF,

I posted an example in this Idea Identifying Raster Cell values in ArcGIS Online   feel free to vote for it! 

You must have access to the code. In other words, it is not out-of-the-box in ArcGIS Online, yet.

0 Kudos
leTiimmy
New Contributor II

Hey Guys, i know this one is pretty old, but i'm basically trying to do the same thing - but i'm stuck...

I'm getting the attached error.

If i log IdentifyTask i get the thing it should be, but if i log IdentifyParameters i just get undefined.

Does anyone have a solution about this?

0 Kudos