<?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: Use the PopUp Widget with Feature Layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-the-popup-widget-with-feature-layer/m-p/1602480#M86813</link>
    <description>&lt;P&gt;Hi, The make popup template it dynamic content, your trying the custom template for easy it make the adpating for the content. I leave the link&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" target="_blank"&gt;PopupTemplate | API Reference | ArcGIS Maps SDK for JavaScript 4.32 | Esri Developer&lt;/A&gt;&amp;nbsp;for you read .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Apr 2025 19:05:17 GMT</pubDate>
    <dc:creator>DarwinSegura</dc:creator>
    <dc:date>2025-04-03T19:05:17Z</dc:date>
    <item>
      <title>Use the PopUp Widget with Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-the-popup-widget-with-feature-layer/m-p/1563906#M86168</link>
      <description>&lt;P&gt;Hi - I'm using Javascript Maps SDK 4.31 with Angular and Angular Material.&amp;nbsp; I have a pop-up with a lot of content and the vertical scroll bar does not appear with the popUpTemplate I've been using.&amp;nbsp; It looks like Angular or Angular Material is preventing the scrollbar from appearing.&amp;nbsp; I noticed that the pop Up widget has an option for docking the pop-up which makes the pop up window bigger and would pretty much solve my issue.&amp;nbsp; The problem I'm having is getting the popUp widget to work with my feature layer.&amp;nbsp; Below is my code.&amp;nbsp; I was hoping that the popUp widget would accept the field content and format and content from the popUpTemplate, but the two dont seem to be working together.&amp;nbsp; The popUp appears at the point where clicked, not docked to the right. Does anyone know what I'm doing wrong here?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;ngOnInit(): void {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; var a = this;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; config.assetsPath = 'assets/';&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; a.map = new Map({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; basemap: 'topo-vector'&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; a.view = new MapView({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; container: this.viewNode.nativeElement,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; center: [-117.45, 33.87],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; zoom: 10,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; map: a.map&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; a.view.when(function () {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; //configure popup&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a.view.popup = new PopUp();&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a.view.popup.dockEnabled = true;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a.view.popup.dockOptions = {position: "top-right"};&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;const popUpTemplate = new PopupTemplate({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; title: "{Permittee}",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; content: [{&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; type: "fields",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fieldInfos: [&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; label: "Address:",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fieldName: "StreetAddress",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; visible: true&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; },&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;etc..&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;var featureLayer = new FeatureLayer({&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; url:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "&lt;A href="https://www.xyz/MapServer/0" target="_blank"&gt;https://www.xyz/MapServer/0&lt;/A&gt;",&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; outFields: ["*"],&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; popupTemplate: popUpTemplate&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; a.map.add(featureLayer);&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2024 22:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-the-popup-widget-with-feature-layer/m-p/1563906#M86168</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2024-12-02T22:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: Use the PopUp Widget with Feature Layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-the-popup-widget-with-feature-layer/m-p/1602480#M86813</link>
      <description>&lt;P&gt;Hi, The make popup template it dynamic content, your trying the custom template for easy it make the adpating for the content. I leave the link&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html" target="_blank"&gt;PopupTemplate | API Reference | ArcGIS Maps SDK for JavaScript 4.32 | Esri Developer&lt;/A&gt;&amp;nbsp;for you read .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2025 19:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/use-the-popup-widget-with-feature-layer/m-p/1602480#M86813</guid>
      <dc:creator>DarwinSegura</dc:creator>
      <dc:date>2025-04-03T19:05:17Z</dc:date>
    </item>
  </channel>
</rss>

