<?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: setTitle not working in infoTemplate in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667233#M62305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how is your app different than &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_hoverinfowindow.html"&gt;this&lt;/A&gt;&lt;SPAN&gt; sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2013 16:17:15 GMT</pubDate>
    <dc:creator>JohnGravois</dc:creator>
    <dc:date>2013-04-25T16:17:15Z</dc:date>
    <item>
      <title>setTitle not working in infoTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667232#M62304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my app using the 3.4 API, I'm attempting to set the title on an infoTemplate. I've tried&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var infoTemplate = new esri.InfoTemplate("Title", contentString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;var infoTemplate = new esri.InfoTemplate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var titleText = "&amp;lt;div&amp;gt;" + "Title" + "&amp;lt;/div&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;infoTemplate.setTitle(titleText); //also tried infoTemplate.setTitle("Title");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;infoTemplate.setContent(contentString);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but neither of those set the title. The contentString shows up properly, though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 12:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667232#M62304</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-04-25T12:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: setTitle not working in infoTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667233#M62305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;how is your app different than &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/query_hoverinfowindow.html"&gt;this&lt;/A&gt;&lt;SPAN&gt; sample?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 16:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667233#M62305</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2013-04-25T16:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: setTitle not working in infoTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667234#M62306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's a &lt;/SPAN&gt;&lt;A href="http://jsfiddle.net/kenbuja/WSAzP/"&gt;working example&lt;/A&gt;&lt;SPAN&gt; that illustrates the issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 17:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667234#M62306</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2013-04-25T17:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: setTitle not working in infoTemplate</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667235#M62307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've have encountered this bug in 3.3 as well. I discovered that you can workaround it by setting the title AFTER you call setFeatures. Otherwise, any other configuration you employ to set the title will show up blank.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My fix: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var selFeature = results[0].feature;
map.graphics.add(selFeature);
var selLayer = results[0].layerName;
selFeature.setInfoTemplate(template);
map.infoWindow.setFeatures([selFeature]);
//** IMPORTANT! **/
// YOU MUST SET THE TITLE **AFTER** CALLING SETFEATURES
map.infoWindow.setTitle(selLayer);
map.infoWindow.show(evt.mapPoint);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:12:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/settitle-not-working-in-infotemplate/m-p/667235#M62307</guid>
      <dc:creator>ReneeMaxwell</dc:creator>
      <dc:date>2021-12-12T04:12:01Z</dc:date>
    </item>
  </channel>
</rss>

