Good day,
I have these two requirements:
- Tapping a country (or multiple countries) on a map highlights the country and selects rows for that country on a data grid.
- Tapping on the data grid selects the row and highlights the country (of the selected row) on the map.
I'm able to achieve requirement #1 with the codes specified in - https://developers.arcgis.com/javascript/latest/sample-code/effect-blur-shadow/
But for #2, I can't seem to find an api that will accept country name of country fid nor any post about this.
The code in the link uses:
var query = {
geometry: view.toMap(event),
returnGeometry: true,
outFields: ["*"]
};
featureLayer.queryFeatures(query);
But on the next requirement, the input country will be from the selected row and not a coordinate from the map.
Anyone know if there's another API for this or if this is possible?
Here's my test page -

Thanks!