Hello,
Using Web AppBuilder and Javascript API 3.22, we are currently creating an InfoTemplate as below, and would like to know how to add map click coordinates (lat/lon) to the template as well. Is this possible? Would we need to create a this.map.onclick event, get coordinates from click, create a variable and place variable in the setContent function below?
var template = new InfoTemplate();
template.setTitle(" ");
template.setContent("${Raster.ItemPixelValue:NumberFormat} <INSERT COORDINATES HERE>");
Thanks for your help and time!