<?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: Custom popup content and actions? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147669#M76477</link>
    <description>&lt;P&gt;Thank you for your response.&lt;BR /&gt;It's pretty basic. The map has some simple location markers.&lt;/P&gt;&lt;P&gt;For the different popup content, an example is markers representing buildings will have a popup content formatted differently form the markers representing an office location. The json file provides several ways to call the different markers (by category and type).&lt;/P&gt;&lt;P&gt;As for the custom actions, as an example, some markers are bus stops and I don't want to show any footer on the popup. The building actions will a direction button probably, and the office actions would have directions as well as a website url button if one is provided for an office.&lt;/P&gt;&lt;P&gt;My first thought was to create different jsonlayer and create multiple popuptemplates for each case. But I feel there is a better solution.&lt;/P&gt;&lt;P&gt;I'll check your links.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
    <pubDate>Thu, 24 Feb 2022 18:59:53 GMT</pubDate>
    <dc:creator>Fox71</dc:creator>
    <dc:date>2022-02-24T18:59:53Z</dc:date>
    <item>
      <title>Custom popup content and actions?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147619#M76475</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using a json layer to load all my markers on my map. These markers need a different popup template based on the information&amp;nbsp; they provide, usually based on a "type" attribute. Also, I want to customize the footer actions based on the type of marker being clicked on.&lt;/P&gt;&lt;P&gt;I have not found a good example online yet.&lt;/P&gt;&lt;P&gt;Any help appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 17:42:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147619#M76475</guid>
      <dc:creator>Fox71</dc:creator>
      <dc:date>2022-02-24T17:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: Custom popup content and actions?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147660#M76476</link>
      <description>&lt;P&gt;You can use Arcade to conditionally create popup elements. Here's some documentation about this:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/arcade/#popup-element" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/arcade/#popup-element&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote a blog post about how to create Arcade elements for cluster popups. The concept is the same as layer popups. This example here:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/summarize-and-explore-point-clusters-with-arcade-in-popups/#list-features" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-online/mapping/summarize-and-explore-point-clusters-with-arcade-in-popups/#list-features&lt;/A&gt;&amp;nbsp;shows how to create content conditional on the feature.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you provide more details with an example of the type of content you would need to display given the type of feature?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:47:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147660#M76476</guid>
      <dc:creator>KristianEkenes</dc:creator>
      <dc:date>2022-02-24T18:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Custom popup content and actions?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147669#M76477</link>
      <description>&lt;P&gt;Thank you for your response.&lt;BR /&gt;It's pretty basic. The map has some simple location markers.&lt;/P&gt;&lt;P&gt;For the different popup content, an example is markers representing buildings will have a popup content formatted differently form the markers representing an office location. The json file provides several ways to call the different markers (by category and type).&lt;/P&gt;&lt;P&gt;As for the custom actions, as an example, some markers are bus stops and I don't want to show any footer on the popup. The building actions will a direction button probably, and the office actions would have directions as well as a website url button if one is provided for an office.&lt;/P&gt;&lt;P&gt;My first thought was to create different jsonlayer and create multiple popuptemplates for each case. But I feel there is a better solution.&lt;/P&gt;&lt;P&gt;I'll check your links.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Thu, 24 Feb 2022 18:59:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/custom-popup-content-and-actions/m-p/1147669#M76477</guid>
      <dc:creator>Fox71</dc:creator>
      <dc:date>2022-02-24T18:59:53Z</dc:date>
    </item>
  </channel>
</rss>

