<?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 Arcade Scripting | Center an Image Container in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/arcade-scripting-center-an-image-container/m-p/788116#M5303</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Everyone,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The image container to the Living Atlas Layer, &lt;A href="https://bit.ly/3dfw9ie,"&gt;https://bit.ly/3dfw9ie,&lt;/A&gt;&amp;nbsp;is defined to display various images that correlate to querying the map layer.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffff00; "&gt;Q: What Arcade string is required to center the contained -&amp;nbsp;$feature.force in an ArcGIS Popup?&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;// Write a script to return a value to show in the pop-up.&lt;BR /&gt;var uriBase = "https://upload.wikimedia.org/wikipedia/commons/"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;var lookup = ["f/fc/Beaufort_scale_0.jpg", "1/18/Beaufort_scale_1.jpg", "d/d1/Beaufort_scale_2.jpg", "5/51/Beaufort_scale_3.jpg", "0/0f/Beaufort_scale_4.jpg", "2/2b/Beaufort_scale_5.jpg", "e/e9/Beaufort_scale_6.jpg", "5/5c/Beaufort_scale_7.jpg", "0/00/Beaufort_scale_8.jpg", "d/d5/Beaufort_scale_9.jpg", "8/86/Beaufort_scale_10.jpg", "1/16/Beaufort_scale_11.jpg", "c/ce/Beaufort_scale_12.jpg"]&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;var force = iif ($feature.force &amp;gt; 12, 12, $feature.force)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;return uriBase + lookup[force]&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for your assistance. My thanks to all in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respectfully,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck Gurney&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 11 Oct 2020 02:31:33 GMT</pubDate>
    <dc:creator>EricGurney</dc:creator>
    <dc:date>2020-10-11T02:31:33Z</dc:date>
    <item>
      <title>Arcade Scripting | Center an Image Container</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-scripting-center-an-image-container/m-p/788116#M5303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Everyone,&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;The image container to the Living Atlas Layer, &lt;A href="https://bit.ly/3dfw9ie,"&gt;https://bit.ly/3dfw9ie,&lt;/A&gt;&amp;nbsp;is defined to display various images that correlate to querying the map layer.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG style="background-color: #ffff00; "&gt;Q: What Arcade string is required to center the contained -&amp;nbsp;$feature.force in an ArcGIS Popup?&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;// Write a script to return a value to show in the pop-up.&lt;BR /&gt;var uriBase = "https://upload.wikimedia.org/wikipedia/commons/"&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;var lookup = ["f/fc/Beaufort_scale_0.jpg", "1/18/Beaufort_scale_1.jpg", "d/d1/Beaufort_scale_2.jpg", "5/51/Beaufort_scale_3.jpg", "0/0f/Beaufort_scale_4.jpg", "2/2b/Beaufort_scale_5.jpg", "e/e9/Beaufort_scale_6.jpg", "5/5c/Beaufort_scale_7.jpg", "0/00/Beaufort_scale_8.jpg", "d/d5/Beaufort_scale_9.jpg", "8/86/Beaufort_scale_10.jpg", "1/16/Beaufort_scale_11.jpg", "c/ce/Beaufort_scale_12.jpg"]&lt;/DIV&gt;&lt;DIV&gt;&lt;BR /&gt;var force = iif ($feature.force &amp;gt; 12, 12, $feature.force)&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;return uriBase + lookup[force]&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Grateful for your assistance. My thanks to all in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Respectfully,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chuck Gurney&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2020 02:31:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-scripting-center-an-image-container/m-p/788116#M5303</guid>
      <dc:creator>EricGurney</dc:creator>
      <dc:date>2020-10-11T02:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcade Scripting | Center an Image Container</title>
      <link>https://community.esri.com/t5/developers-questions/arcade-scripting-center-an-image-container/m-p/788117#M5304</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/people/eric.gurney"&gt;eric.gurney&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if I understand your question completely, since the link you provided points to content that is not public.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So the Arcade expression uses the wind force to convert it to a URL that points to an image on wikimedia. To center something in the pop-up you need to use the customize HTML pop-up options to format it any way you need. This is not part of the Arcade expression.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Oct 2020 13:58:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/arcade-scripting-center-an-image-container/m-p/788117#M5304</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2020-10-13T13:58:43Z</dc:date>
    </item>
  </channel>
</rss>

