<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer in Web AppBuilder Custom Widgets Questions</title>
    <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770416#M1588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I should explain that we are adding layers to the web application map dynamically through JavaScript, rather than using layers loaded from a Web Map.&amp;nbsp; The Web Map we are loading has no layers within it, we are just using it for a basemap.&amp;nbsp; Once the Web Map loads and the user opens a Layer List widget, we add an Image Service to the web map via Javascript.&amp;nbsp; That is the reason I am creating an infotemplate and adding it to an imageServiceLayer.&amp;nbsp; We would like the user to click on the map/image service to retrieve pixel values and also view lat long for that click.&amp;nbsp; Thanks for your help!&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Dec 2017 17:07:58 GMT</pubDate>
    <dc:creator>CenterlineMapping</dc:creator>
    <dc:date>2017-12-14T17:07:58Z</dc:date>
    <item>
      <title>Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770412#M1584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&amp;nbsp; Is this possible?&amp;nbsp; 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?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var template = new InfoTemplate();&lt;BR /&gt;template.setTitle("&amp;nbsp;");&lt;BR /&gt;template.setContent("${Raster.ItemPixelValue:NumberFormat}&amp;nbsp;&amp;nbsp;&amp;lt;INSERT COORDINATES HERE&amp;gt;");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help and time!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 17:40:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770412#M1584</guid>
      <dc:creator>CenterlineMapping</dc:creator>
      <dc:date>2017-12-13T17:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770413#M1585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a thread where I show how to add lat long to any popup:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/205298-adding-xy-to-popup-in-wab-applicaiton"&gt;https://community.esri.com/thread/205298-adding-xy-to-popup-in-wab-applicaiton&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Dec 2017 19:22:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770413#M1585</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-13T19:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770414#M1586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the link, Robert.&lt;/P&gt;&lt;P&gt;I'm not sure how that code would work using the InfoTemplate object and code as above.&amp;nbsp; I will continue to investigate.&amp;nbsp; Might need to use the InfoWindowBase Popup although we are applying this for an ArcGIS Image Service layer as shown below so not sure if this layer can use the Popup as an infoTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imageServiceLayer = new ArcGISImageServiceLayer("&amp;lt;ImageURL", {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; imageServiceParameters: params,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;infoTemplate: template,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; opacity: 0.8&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 16:34:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770414#M1586</guid>
      <dc:creator>CenterlineMapping</dc:creator>
      <dc:date>2017-12-14T16:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770415#M1587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are over thinking this. The code provided does not care what you are using it just adds the click coordinates to any popup that is shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 16:36:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770415#M1587</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-14T16:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770416#M1588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Robert, I should explain that we are adding layers to the web application map dynamically through JavaScript, rather than using layers loaded from a Web Map.&amp;nbsp; The Web Map we are loading has no layers within it, we are just using it for a basemap.&amp;nbsp; Once the Web Map loads and the user opens a Layer List widget, we add an Image Service to the web map via Javascript.&amp;nbsp; That is the reason I am creating an infotemplate and adding it to an imageServiceLayer.&amp;nbsp; We would like the user to click on the map/image service to retrieve pixel values and also view lat long for that click.&amp;nbsp; Thanks for your help!&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 17:07:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770416#M1588</guid>
      <dc:creator>CenterlineMapping</dc:creator>
      <dc:date>2017-12-14T17:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770417#M1589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Again, Don't over think that you workflow will affect in any way the code I have provided. The fact that you are creating an InfoTemplate means that the Apps popup will be shown and my code will automatically add the click points coordinates to that popup.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Dec 2017 17:11:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770417#M1589</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-14T17:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding coordinates to InfoTemplate popup for ArcGIS Image Service Layer</title>
      <link>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770418#M1590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Centerline Mapping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Did you ever try my code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:41:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/web-appbuilder-custom-widgets-questions/adding-coordinates-to-infotemplate-popup-for/m-p/770418#M1590</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-12-19T13:41:33Z</dc:date>
    </item>
  </channel>
</rss>

