<?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 popupTemplate when loading WebMap in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127911#M11820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use the&amp;nbsp;&lt;STRONG&gt;Popup Template when loading a WebMap&lt;/STRONG&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;The Popup Template &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/get-started-popupTemplate/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;sample code&lt;/A&gt;&amp;nbsp;is built in the context of loading a feature layer, but not an entire WebMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code when loading a feature layer is&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;‍
&amp;nbsp; url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"..."&lt;/SPAN&gt;
&amp;nbsp; popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mediaInfos&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but how do you use the popupTemplate when loading a WebMap with feature &amp;amp; tile layers ?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var webmap &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;WebMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 portalItem&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My &lt;SPAN&gt;WebApp&amp;nbsp;&lt;/SPAN&gt;is available on &lt;A href="http://jsbin.com/kecudizivo/1/edit?html,output" rel="nofollow noopener noreferrer" target="_blank"&gt;JS BIN&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:14:11 GMT</pubDate>
    <dc:creator>MichelleJean</dc:creator>
    <dc:date>2021-12-11T07:14:11Z</dc:date>
    <item>
      <title>popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127911#M11820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use the&amp;nbsp;&lt;STRONG&gt;Popup Template when loading a WebMap&lt;/STRONG&gt;&amp;nbsp;?&lt;/P&gt;&lt;P&gt;The Popup Template &lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/get-started-popupTemplate/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;sample code&lt;/A&gt;&amp;nbsp;is built in the context of loading a feature layer, but not an entire WebMap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sample code when loading a feature layer is&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;FeatureLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;‍
&amp;nbsp; url&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"..."&lt;/SPAN&gt;
&amp;nbsp; popupTemplate&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mediaInfos&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;but how do you use the popupTemplate when loading a WebMap with feature &amp;amp; tile layers ?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;var webmap &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;WebMap&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 portalItem&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;id&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"..."&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&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;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My &lt;SPAN&gt;WebApp&amp;nbsp;&lt;/SPAN&gt;is available on &lt;A href="http://jsbin.com/kecudizivo/1/edit?html,output" rel="nofollow noopener noreferrer" target="_blank"&gt;JS BIN&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:14:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127911#M11820</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2021-12-11T07:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Popup Template</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127912#M11821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michelle,&lt;/P&gt;&lt;P&gt;From the docs:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c;"&gt;You can configure pop-ups in ArcGIS Server service layers, hosted feature layers, hosted tile layers, layers from files, and &lt;/SPAN&gt;&lt;A href="http://doc.arcgis.com/en/arcgis-online/reference/ogc.htm" style="color: #0079c1;"&gt;OGC WMS and WFS&lt;/A&gt;&lt;SPAN style="color: #4c4c4c;"&gt; layers. If you are configuring pop-ups for an ArcGIS Server feature layer, you can also set which fields are editable. &lt;/SPAN&gt;&lt;SPAN class="" style="color: #4c4c4c;"&gt;If your layers contain related data, you can configure pop-ups to &lt;A href="http://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups.htm#ESRI_SECTION1_09B2E0D22072457AAC8D025377DD7CF9" style="color: #0079c1;"&gt;show the related data&lt;/A&gt; within the pop-up or in a table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups.htm" title="http://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups.htm"&gt;Configure pop-ups—ArcGIS Online Help | ArcGIS&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Mar 2017 22:27:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127912#M11821</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-07T22:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127913#M11822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3101"&gt;Robert Scheitlin, GISP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the documentation it is my understanding that you can&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;use the popupTemplate when loading a WebMap. But I can not seem to find a sample code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I updated my question to make it a little more precise.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 08:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127913#M11822</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2017-03-08T08:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127914#M11823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you mean by "use the popup template?" &amp;nbsp;In other words, what's your goal here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can set the popup template per layer using&amp;nbsp;the popupTemplate property, as in the sample you linked. &amp;nbsp;You can also set the popup template on a MapView or a SceneView using&amp;nbsp;the popup property. &amp;nbsp;In the case of your app, it would be a MapView:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#popup" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-views-MapView.html#popup"&gt;MapView | API Reference | ArcGIS API for JavaScript 4.3&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 14:33:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127914#M11823</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-08T14:33:23Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127915#M11824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Michelle,&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;&amp;nbsp; If you are configuring your popups in the web map using the AGOL map viewer, then you do not have to worry about the popup template stuff. You configure the popup using the map viewer GUI, which allows and the options like charts and images.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 16:06:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127915#M11824</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-03-08T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127916#M11825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;My goal is to load a WebMap and then customize it's&amp;nbsp;feature layer&amp;nbsp;popup in order to&amp;nbsp;set up a certain dojox charting theme.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/336678_print_screen.jpg" style="width: 620px; height: 304px;" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; border: 0px;"&gt;The code above&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff;"&gt;is available on &lt;/SPAN&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fjsbin.com%2Fkecudizivo%2F1%2Fedit%3Fhtml%2Coutput" style="color: #287433; background-color: #ffffff; border: 0px; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;JS BIN&lt;/A&gt;&lt;SPAN style="background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can I do that&amp;nbsp;using the popupTemplate?&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;popupTemplate&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp; mediaInfos&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; value&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; theme&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"..."&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If so, could you provide me a sample code? I can't seem to&amp;nbsp;get this code working in my JS BIN.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michelle.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127916#M11825</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2021-12-11T07:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127917#M11826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your best bet would be to edit the&amp;nbsp;popup theme elsewhere, as Robert mentioned. &amp;nbsp;I don't know a lot about what goes into setting up these kinds of&amp;nbsp;popups, but you're probably better off editing it in the application that was used to create the web map and define the pie chart&amp;nbsp;in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: this turns out to simpler than I thought.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change&amp;nbsp;the chart theme like this:&amp;nbsp;&lt;A class="link-titled" href="http://jsbin.com/nesefowoha/edit?html,output" title="http://jsbin.com/nesefowoha/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can totally remake the chart, which includes redefining which fields get charted like this:&amp;nbsp;&lt;A class="link-titled" href="http://jsbin.com/payijegemo/edit?html,output" title="http://jsbin.com/payijegemo/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 18:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127917#M11826</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-08T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127918#M11827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/193995"&gt;Thomas Solow&lt;/A&gt;‌ this is really beautiful, works like a charm&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there something I should be doing regarding the &lt;A href="http://jsbin.com/payijegemo/edit?html,output"&gt;tooltipField &lt;/A&gt;?&lt;/P&gt;&lt;P&gt;The chart&amp;nbsp;doesn't seem to be responsive on hover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Michelle.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Mar 2017 23:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127918#M11827</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2017-03-08T23:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127919#M11828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The API documentation says tooltipField is "&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;Used for chart values. Defines the tooltip display field that displays when hovering over the chart."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff; font-weight: 300;"&gt;I'm not sure what it actually does though. &amp;nbsp;I couldn't get anything to happen when hovering my mouse over the chart&amp;nbsp;while changing that value. &amp;nbsp;I think it should be set to the name of one of the fields being used to construct the pie graph but I tried this and didn't notice a change.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 15:27:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127919#M11828</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-09T15:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127920#M11829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/people/rscheitlin"&gt;rscheitlin&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Mar 2017 21:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127920#M11829</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2017-03-09T21:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127921#M11830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/193995" target="_blank"&gt;Thomas Solow&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your Java 4.2&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://jsbin.com/janubagito/1/edit?html,output" rel="nofollow noopener noreferrer" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;also available in a Java 3.20 &lt;A href="http://jsbin.com/felezuquku/1/edit?html,output" rel="nofollow noopener noreferrer" target="_blank"&gt;JS Bin&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;The two are identical but in different java versions.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know hot to use your&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// Added code&lt;/SPAN&gt;
webmap&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;then&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;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;P&gt;code since the &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-WebMap.html" rel="nofollow noopener noreferrer" target="_blank"&gt;webmap function&amp;nbsp;&lt;/A&gt;is only available for Java 4.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you, Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127921#M11830</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2021-12-11T07:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127922#M11831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the 3.20 API I think you would access the map after the promise from arcgisUtils.createMap resolves, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://jsbin.com/bemenixoqo/1/edit?html,output" title="http://jsbin.com/bemenixoqo/1/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That example shows how you could access the layer as well, assuming you only have one layer. &amp;nbsp;If you want to edit the popup for that layer, you should play around with the infoTemplate property on the layer. &amp;nbsp;For more on how to add a graph instead of the attribute table, take a look here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jshelp/intro_formatinfowindow.html" title="https://developers.arcgis.com/javascript/3/jshelp/intro_formatinfowindow.html"&gt;Format info window content | Guide | ArcGIS API for JavaScript 3.20&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, here:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jshelp/intro_customizepopup.html" title="https://developers.arcgis.com/javascript/3/jshelp/intro_customizepopup.html"&gt;Customize popup | Guide | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 20:59:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127922#M11831</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-21T20:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127923#M11832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you &lt;A href="https://community.esri.com/migrated-users/193995" target="_blank"&gt;Thomas Solow&lt;/A&gt;‌ ,&lt;/P&gt;&lt;P&gt;I &amp;nbsp;edited the popup and accessed de feature layer but still not working&amp;nbsp;&lt;A href="http://jsbin.com/nopufaraya/1/edit?html,output" rel="nofollow noopener noreferrer" style="color: #287433; background-color: #ffffff; border: 0px; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/confused.png" /&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;// this is your map&lt;/SPAN&gt;
 console&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;log&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

 var template &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;new&lt;/SPAN&gt; &lt;SPAN class="token class-name"&gt;PopupTemplate&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 mediaInfos&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; 
 title&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"&amp;lt;b&amp;gt;EDIT TITLE&amp;lt;/b&amp;gt;"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 type&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"pie-chart"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 caption&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"EDIT CAPTION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 type&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"piechart"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 value&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 theme&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Julie"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 fields&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"L1____"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"L5____"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍

 &lt;SPAN class="comment token"&gt;// this is your layer, assuming your map only has one feature layer&lt;/SPAN&gt;
 var featureLayer &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;getLayer&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;response&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;map&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;graphicsLayerIds&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
 mode&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; FeatureLayer&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MODE_ONDEMAND&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 outFields&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"*"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 infoTemplate&lt;SPAN class="operator token"&gt;:&lt;/SPAN&gt; template
 &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&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>Sat, 11 Dec 2021 07:14:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127923#M11832</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2021-12-11T07:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127924#M11833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this:&amp;nbsp;&lt;A class="link-titled" href="http://jsbin.com/pixihacinu/1/edit?html,output" title="http://jsbin.com/pixihacinu/1/edit?html,output"&gt;JS Bin - Collaborative JavaScript Debugging&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this situation, your layers are already baked into the web map that you'll pulling in. &amp;nbsp;You just have to find the layer in question and edit the infoTemplate property.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 12:54:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127924#M11833</guid>
      <dc:creator>ThomasSolow</dc:creator>
      <dc:date>2017-03-22T12:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: popupTemplate when loading WebMap</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127925#M11834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lovely&amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/love.png" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, &lt;A href="https://community.esri.com/migrated-users/193995"&gt;Thomas Solow&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Mar 2017 17:19:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/popuptemplate-when-loading-webmap/m-p/127925#M11834</guid>
      <dc:creator>MichelleJean</dc:creator>
      <dc:date>2017-03-22T17:19:05Z</dc:date>
    </item>
  </channel>
</rss>

