AnsweredAssumed Answered

Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer

Question asked by centerlinemapping on Dec 13, 2017
Latest reply on Dec 19, 2017 by rscheitlin



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 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!