<?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 Are WebScene popups a thing? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-webscene-popups-a-thing/m-p/1100584#M74740</link>
    <description>&lt;P&gt;I'm struggling to get popups to show up when I click on a feature displayed in a portal WebScene in my code. I know that popups are enabled for my layers, because when I view the WebScene in Scene Viewer in my browser, I see the popups when I click on features.&lt;/P&gt;&lt;P&gt;I notice that in the example here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/display-a-web-scene/," target="_blank"&gt;https://developers.arcgis.com/javascript/latest/display-a-web-scene/,&lt;/A&gt;&amp;nbsp;that when I click on a feature, it gets highlighted, but no popup appears. I don't know if popups are enabled for the layers in that WebScene, but when I tried to modify that code to show my WebScene, for which popups are enabled, they still don't show up.&lt;/P&gt;&lt;P&gt;Is it possible to have a portal WebScene in my web application and show popups for its feature layers?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Sep 2021 22:36:48 GMT</pubDate>
    <dc:creator>BrentGrossman</dc:creator>
    <dc:date>2021-09-21T22:36:48Z</dc:date>
    <item>
      <title>Are WebScene popups a thing?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-webscene-popups-a-thing/m-p/1100584#M74740</link>
      <description>&lt;P&gt;I'm struggling to get popups to show up when I click on a feature displayed in a portal WebScene in my code. I know that popups are enabled for my layers, because when I view the WebScene in Scene Viewer in my browser, I see the popups when I click on features.&lt;/P&gt;&lt;P&gt;I notice that in the example here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/display-a-web-scene/," target="_blank"&gt;https://developers.arcgis.com/javascript/latest/display-a-web-scene/,&lt;/A&gt;&amp;nbsp;that when I click on a feature, it gets highlighted, but no popup appears. I don't know if popups are enabled for the layers in that WebScene, but when I tried to modify that code to show my WebScene, for which popups are enabled, they still don't show up.&lt;/P&gt;&lt;P&gt;Is it possible to have a portal WebScene in my web application and show popups for its feature layers?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Sep 2021 22:36:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-webscene-popups-a-thing/m-p/1100584#M74740</guid>
      <dc:creator>BrentGrossman</dc:creator>
      <dc:date>2021-09-21T22:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: Are WebScene popups a thing?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-webscene-popups-a-thing/m-p/1100811#M74743</link>
      <description>&lt;P&gt;Hi Brent,&lt;BR /&gt;Yes, web scenes in web apps can have popups!&lt;/P&gt;&lt;P&gt;Unless the layer’s popups are disabled, the Scene Viewer always shows one: no matter whether a user has &lt;A href="https://doc.arcgis.com/en/arcgis-online/create-maps/configure-pop-ups-in-scene.htm" target="_blank" rel="noopener"&gt;configured a popup&lt;/A&gt; or not. In the latter case, a popup with a default template is shown.&lt;BR /&gt;When the same web scene is loaded in a web app, the layers without such a configuration won’t display a popup. To enable them, you need to add the following line in your code:&lt;/P&gt;&lt;P&gt;&lt;FONT face="terminal,monaco"&gt;&lt;FONT size="2"&gt;view.popup.defaultPopupTemplateEnabled = true;&lt;/FONT&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;See more &lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Popup.html#defaultPopupTemplateEnabled" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Let me know if this solves your problem. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By the way, in the sample you refer to, the popups are displayed below the map because the CSS file is missing due to a typo. But once I changed the URL in the codepen to point to the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://jsdev.arcgis.com/4.21/esri/themes/light/main.css" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;latest style&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;file, the popups appear correctly again. We’ll get that sample fixed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Sep 2021 13:57:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/are-webscene-popups-a-thing/m-p/1100811#M74743</guid>
      <dc:creator>GreteSoosalu</dc:creator>
      <dc:date>2021-09-22T13:57:55Z</dc:date>
    </item>
  </channel>
</rss>

