<?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: Popup does not render Graphic PopupTemplate content in 4.5 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150025#M13970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try a graphics layer, but the keyword in the documentation is "if":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;As of version 4.5, &lt;STRONG&gt;if&lt;/STRONG&gt; the &lt;CODE&gt;popupTemplate&lt;/CODE&gt; is not defined on the &lt;CODE&gt;Graphic&lt;/CODE&gt;, it will use the graphic &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#layer"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;layer&lt;/SPAN&gt;&lt;/A&gt; popupTemplate.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see anything that states the popupTemplate MUST be defined&amp;nbsp;in the graphic layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 15:17:07 GMT</pubDate>
    <dc:creator>BradleyChappell</dc:creator>
    <dc:date>2017-10-19T15:17:07Z</dc:date>
    <item>
      <title>Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150021#M13966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I built a web application using the JS 4.4 API and have recently upgraded the JS source to 4.5. When I changed the script and style sources to 4.5, my Popup quit rendering the content.&lt;/P&gt;&lt;P&gt;Here is the content of the&amp;nbsp;Graphic's popup template&amp;nbsp;(which is logged during runtime to the console):&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;lt;div class='popupEntry'&amp;gt;Network: {Network}&amp;lt;/div&amp;gt;&amp;lt;div class='popupEntry'&amp;gt;County: {County}&amp;lt;/div&amp;gt;&amp;lt;div class='popupEntry'&amp;gt;Residential Buildings: {Residential_Bldgs}&amp;lt;/div&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the popup rendered in 4.4:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="380415" alt="Popup 4.4" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380415_PopUp44.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the&amp;nbsp; popup rendered in 4.5:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="380416" alt="Popup 4.5" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/380416_PopUp45.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, my custom action is present in each, but only works in 4.4.&lt;/P&gt;&lt;P&gt;In 4.5 it throws an error "a is null" in MapView.js 1771:486&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Browser: Firefox&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150021#M13966</guid>
      <dc:creator>BradleyChappell</dc:creator>
      <dc:date>2017-10-18T18:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150022#M13967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I stumbled across this in the API documentation the other day. I wonder if that has some relation to your issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;As of version 4.5, if the &lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.85em;"&gt;popupTemplate&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt; is not defined on the &lt;/SPAN&gt;&lt;CODE style="color: #595959; background-color: #f8f8f8; border: 1px solid #efefef; font-size: 0.85em;"&gt;Graphic&lt;/CODE&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;, it will use the graphic &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#layer" style="color: #0079c1;"&gt;layer&lt;/A&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt; popupTemplate.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:48:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150022#M13967</guid>
      <dc:creator>ToddAtkins</dc:creator>
      <dc:date>2017-10-18T18:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150023#M13968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the response.&amp;nbsp; I am defining the popupTemplate for each Graphic though, so it should use that as opposed to the graphic layer. Actually, I'm not even creating a graphic layer.&amp;nbsp; Instead, I am just setting my Graphics[] to the View.Popup.Features property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 11:25:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150023#M13968</guid>
      <dc:creator>BradleyChappell</dc:creator>
      <dc:date>2017-10-19T11:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150024#M13969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should try adding them to a Graphics Layer than and define the PopupTemplate for the GL and not the graphic as the docs now state for 4.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150024#M13969</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-19T12:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150025#M13970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try a graphics layer, but the keyword in the documentation is "if":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;As of version 4.5, &lt;STRONG&gt;if&lt;/STRONG&gt; the &lt;CODE&gt;popupTemplate&lt;/CODE&gt; is not defined on the &lt;CODE&gt;Graphic&lt;/CODE&gt;, it will use the graphic &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-Graphic.html#layer"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;layer&lt;/SPAN&gt;&lt;/A&gt; popupTemplate.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't see anything that states the popupTemplate MUST be defined&amp;nbsp;in the graphic layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:17:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150025#M13970</guid>
      <dc:creator>BradleyChappell</dc:creator>
      <dc:date>2017-10-19T15:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150026#M13971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Ok I totally missed the “if”.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 15:39:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150026#M13971</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-10-19T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150027#M13972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used to set popupTemplate for each graphic (view.popupTemplate does not work) in version 4.4. Now it's broken in 4.5 and I don't know how to fix it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;view.on("click", function (event) {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;event.stopPropagation();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;var ext = pointToExtent(view, event.mapPoint, 10);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;view.popup.features = findPointsInExtent(ext);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if (view.popup.features.length &amp;gt; 0)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;{ view.popup.open({location: event.mapPoint}); }&lt;/P&gt;&lt;P&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Oct 2017 22:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150027#M13972</guid>
      <dc:creator>YueZhou1</dc:creator>
      <dc:date>2017-10-27T22:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Popup does not render Graphic PopupTemplate content in 4.5</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150028#M13973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just came back to this problem after a few weeks of doing other things.&amp;nbsp; Now, the popup renders the graphic template without any changes to my code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ESRI must have made some update to their API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone from ESRI confirm any update to the 4.5 API?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Nov 2017 19:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popup-does-not-render-graphic-popuptemplate/m-p/150028#M13973</guid>
      <dc:creator>BradleyChappell</dc:creator>
      <dc:date>2017-11-14T19:00:49Z</dc:date>
    </item>
  </channel>
</rss>

