<?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 InfoWindow Help in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82845#M7537</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few general questions about InfoWindow, if you'll indulge me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have an infoTemplate set with one of my ArcGISDynamicServiceLayers. It works as it should. When I click on a parcel on the map, it pops up the InfoWindow with the information as set in the InfoTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;infoTemplate = new InfoTemplate("${PIN_DSP}","&amp;lt;b&amp;gt;${OWNER_NAME}&amp;lt;/b&amp;gt;");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var parcelsLayer = new ArcGISDynamicMapServiceLayer("http://172.27.8.54/okaloosagis/rest/services/PropertyApp/ParcelService/MapServer", {&lt;BR /&gt; "id": "Parcels",&lt;BR /&gt; "visible": true,&lt;BR /&gt; disableClientCaching: true,&lt;BR /&gt; useMapImage: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;parcelsLayer.setInfoTemplates({&lt;BR /&gt; 14: {infoTemplate: infoTemplate}&lt;BR /&gt; })&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I added the ability to use the Extent draw feature to select multiple parcels at once. I wanted to use the same InfoTemplate to display any number of parcels that I select, with the ability to click on Previous/Next Feature to move between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function showFeatureSet(fset,evt, infoTemplate) {&lt;BR /&gt; map.graphics.clear();&lt;BR /&gt; featureSet = fset;&lt;BR /&gt; var numFeatures = featureSet.features.length;&lt;BR /&gt; var features = fset.features&lt;I&gt;&lt;BR /&gt; &lt;BR /&gt; var content = "";&lt;BR /&gt; debugger;&lt;BR /&gt; for (var i=0; i&amp;lt;numFeatures; i++) {&lt;BR /&gt; var graphic = featureSet.features&lt;I&gt;;&lt;BR /&gt; content = graphic.attributes.OWNER_NAME;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;infoTemplate = new InfoTemplate("${PIN_DSP}","&amp;lt;b&amp;gt;${OWNER_NAME}&amp;lt;/b&amp;gt;");&lt;BR /&gt; &lt;BR /&gt; graphic.setInfoTemplate(infoTemplate);&lt;BR /&gt; graphic.symbol = fillSymbol;&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; map.infoWindow.setContent(content);&lt;BR /&gt; }&lt;BR /&gt; map.infoWindow.show(evt.screenPoint);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is the correct way to do it, for many reasons. One, I read that the InfoTemplate defaults to highlighting the parcel, as it does when I click on a single parcel. In this situation, I have to physically use a fillSymbol, which I didn't think I had to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I can't figure out how to load the multiple parcels into the InfoWindow so that it prompts me with "Next Feature/Previous Feature" like I've seen it do if I click in the middle of two single parcels. In the code that I've tried, I can either get it to show multiple parcels in a single InfoWindow with all the data jumbled together, or it just shows the last parcel loaded from the group selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, how would you recommend I tell the InfoWindow where to load in a "select by extent" kind of situation? It doesn't seem to register evt.ScreenPoint, so it's just&amp;nbsp;displaying it in the top left corner unless previously used, in which it just loads it wherever it was displayed previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize if this is way too many questions at once, and I appreciate your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2019 18:14:46 GMT</pubDate>
    <dc:creator>KevinHanley2</dc:creator>
    <dc:date>2019-02-21T18:14:46Z</dc:date>
    <item>
      <title>InfoWindow Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82845#M7537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A few general questions about InfoWindow, if you'll indulge me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now I have an infoTemplate set with one of my ArcGISDynamicServiceLayers. It works as it should. When I click on a parcel on the map, it pops up the InfoWindow with the information as set in the InfoTemplate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; &lt;/SPAN&gt;infoTemplate = new InfoTemplate("${PIN_DSP}","&amp;lt;b&amp;gt;${OWNER_NAME}&amp;lt;/b&amp;gt;");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var parcelsLayer = new ArcGISDynamicMapServiceLayer("http://172.27.8.54/okaloosagis/rest/services/PropertyApp/ParcelService/MapServer", {&lt;BR /&gt; "id": "Parcels",&lt;BR /&gt; "visible": true,&lt;BR /&gt; disableClientCaching: true,&lt;BR /&gt; useMapImage: true&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;parcelsLayer.setInfoTemplates({&lt;BR /&gt; 14: {infoTemplate: infoTemplate}&lt;BR /&gt; })&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next I added the ability to use the Extent draw feature to select multiple parcels at once. I wanted to use the same InfoTemplate to display any number of parcels that I select, with the ability to click on Previous/Next Feature to move between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function showFeatureSet(fset,evt, infoTemplate) {&lt;BR /&gt; map.graphics.clear();&lt;BR /&gt; featureSet = fset;&lt;BR /&gt; var numFeatures = featureSet.features.length;&lt;BR /&gt; var features = fset.features&lt;I&gt;&lt;BR /&gt; &lt;BR /&gt; var content = "";&lt;BR /&gt; debugger;&lt;BR /&gt; for (var i=0; i&amp;lt;numFeatures; i++) {&lt;BR /&gt; var graphic = featureSet.features&lt;I&gt;;&lt;BR /&gt; content = graphic.attributes.OWNER_NAME;&lt;/I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;infoTemplate = new InfoTemplate("${PIN_DSP}","&amp;lt;b&amp;gt;${OWNER_NAME}&amp;lt;/b&amp;gt;");&lt;BR /&gt; &lt;BR /&gt; graphic.setInfoTemplate(infoTemplate);&lt;BR /&gt; graphic.symbol = fillSymbol;&lt;BR /&gt; map.graphics.add(graphic);&lt;BR /&gt; map.infoWindow.setContent(content);&lt;BR /&gt; }&lt;BR /&gt; map.infoWindow.show(evt.screenPoint);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think this is the correct way to do it, for many reasons. One, I read that the InfoTemplate defaults to highlighting the parcel, as it does when I click on a single parcel. In this situation, I have to physically use a fillSymbol, which I didn't think I had to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I can't figure out how to load the multiple parcels into the InfoWindow so that it prompts me with "Next Feature/Previous Feature" like I've seen it do if I click in the middle of two single parcels. In the code that I've tried, I can either get it to show multiple parcels in a single InfoWindow with all the data jumbled together, or it just shows the last parcel loaded from the group selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, how would you recommend I tell the InfoWindow where to load in a "select by extent" kind of situation? It doesn't seem to register evt.ScreenPoint, so it's just&amp;nbsp;displaying it in the top left corner unless previously used, in which it just loads it wherever it was displayed previously.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I apologize if this is way too many questions at once, and I appreciate your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 18:14:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82845#M7537</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2019-02-21T18:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindow Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82846#M7538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;To show a popup for multiple features and the those features layer has a popupTemplate or infoTemplate assigned you have to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;setFeatures&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;yourArrayofGraphicsFromTheQuery&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍
map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;infoWindow&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;show&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;evt&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;screenPoint&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 23:10:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82846#M7538</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2021-12-10T23:10:50Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindow Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82847#M7539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked perfectly. Thank you! I was hung up on that for days.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:45:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82847#M7539</guid>
      <dc:creator>KevinHanley2</dc:creator>
      <dc:date>2019-02-21T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: InfoWindow Help</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82848#M7540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:55:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/infowindow-help/m-p/82848#M7540</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2019-02-21T21:55:55Z</dc:date>
    </item>
  </channel>
</rss>

