Get an attribute value from a map click point

853
3
12-22-2014 02:36 PM
DavidHaines
Occasional Contributor

I'm looking for a simplified example of a Custom Widget in Web App Builder that would be used to click on the map, and get an attribute for that feature. The layer service and field name area already known (hardcoded).  I've looked at the documentation for both the Widgets and Javascript API and nothing is quite clear to me on how the two should work together to do this.  I've spent too much time trying to figure out how the Query Widget works and have not gotten that far.

0 Kudos
3 Replies
BarnabyRockwell
Occasional Contributor III

Many are asking for the same feature.  For example,

Will there be an Identify Widget for WAB

0 Kudos
DavidHaines
Occasional Contributor

I've seen several of those posts looking for an example.  It sounded like they were more looking for an out of the box type tool. 

I'm looking for code samples, since once I get the feature's value, I'd like to do a bunch of other stuff with it and then present the results to the user. 

0 Kudos
BarnabyRockwell
Occasional Contributor III

I see.  Too bad the Query Widget isn't working for you, as it seems to be what you are looking for, as I am sure you thought.  Here's a related thread which you may have seen:

Customizing the Query Widget

0 Kudos