<?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 Pop up webmap vs Pop up WAB in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-webmap-vs-pop-up-wab/m-p/389718#M19492</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inspired by &lt;A class="link-titled" href="http://support.esri.com/en/technical-article/000015368" title="http://support.esri.com/en/technical-article/000015368" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Add an image at the top of pop-up windows in ArcGIS Online&lt;/A&gt;, I'm trying to configure a pop up (customised html attribute display).&lt;/P&gt;&lt;P&gt;The data contains several images (as online links), but not all features have all images to display. So I packed the img tag into an object tag, give a width-size and a title to the object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;object data="{Layer1}" style="width:230px;" title="0-15m" type="image/jpg"&amp;gt;
&amp;lt;img src="{Layer1}" /&amp;gt;
&amp;lt;/object&amp;gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;object data="{Layer2}" style="width:230px;" title="0-15m" type="image/jpg"&amp;gt;
&amp;lt;img src="{Layer2}" /&amp;gt;
&amp;lt;/object&amp;gt;
...&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;It all works fine in the webmap, images are well aligned, no horizontal scrollbar, title shows up on mouse over and there is no "broken" image display (just a little empty space), if&amp;nbsp;img src is empty:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366848" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366848_pastedImage_4.png" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG __jive_id="366851" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366851_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to my web app (online Web AppBuilder launchpad theme), there are broken images (where src is empty), the width is ignored and the title doesn't show up. It seems that WAB doesn't recognise the &amp;lt;object&amp;gt;-tag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366820" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366820_pastedImage_3.png" /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;IMG __jive_id="366850" class="jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/366850_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution would be to hide img tags with empty src with some css:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;head&amp;gt;
&amp;lt;style&amp;gt;
img[src=""] {
 display: none;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;&lt;/PRE&gt;&lt;P&gt;This even makes the empty space disappear in the web map pop up,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366853" class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/366853_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;but displays in&amp;nbsp;WAB like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366857" class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/366857_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Finally this happens&lt;/STRONG&gt;: I close the webmap completely, and open it again. Now the pop up is "messed" up like the one in WAB, and looking at the code, the &amp;lt;head&amp;gt; and &amp;lt;style&amp;gt; tags are gone and the &lt;SPAN&gt;img[src=""] is replaced by&amp;nbsp;img[src=&amp;amp;quot;&amp;amp;quot;], and with the first solution, the &amp;lt;object&amp;gt; tags have vanished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I have to abandon this, but anyway thanks in advance for any hint,&lt;/P&gt;&lt;P&gt;Annina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2150" target="_blank"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:25:04 GMT</pubDate>
    <dc:creator>AnninaHirschi_Wyss1</dc:creator>
    <dc:date>2021-12-12T16:25:04Z</dc:date>
    <item>
      <title>Pop up webmap vs Pop up WAB</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-webmap-vs-pop-up-wab/m-p/389718#M19492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inspired by &lt;A class="link-titled" href="http://support.esri.com/en/technical-article/000015368" title="http://support.esri.com/en/technical-article/000015368" rel="nofollow noopener noreferrer" target="_blank"&gt;How To: Add an image at the top of pop-up windows in ArcGIS Online&lt;/A&gt;, I'm trying to configure a pop up (customised html attribute display).&lt;/P&gt;&lt;P&gt;The data contains several images (as online links), but not all features have all images to display. So I packed the img tag into an object tag, give a width-size and a title to the object:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;object data="{Layer1}" style="width:230px;" title="0-15m" type="image/jpg"&amp;gt;
&amp;lt;img src="{Layer1}" /&amp;gt;
&amp;lt;/object&amp;gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;object data="{Layer2}" style="width:230px;" title="0-15m" type="image/jpg"&amp;gt;
&amp;lt;img src="{Layer2}" /&amp;gt;
&amp;lt;/object&amp;gt;
...&lt;/PRE&gt;&lt;/PRE&gt;&lt;P&gt;It all works fine in the webmap, images are well aligned, no horizontal scrollbar, title shows up on mouse over and there is no "broken" image display (just a little empty space), if&amp;nbsp;img src is empty:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366848" class="image-3 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366848_pastedImage_4.png" /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;IMG __jive_id="366851" class="image-5 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366851_pastedImage_7.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Going to my web app (online Web AppBuilder launchpad theme), there are broken images (where src is empty), the width is ignored and the title doesn't show up. It seems that WAB doesn't recognise the &amp;lt;object&amp;gt;-tag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366820" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/366820_pastedImage_3.png" /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;IMG __jive_id="366850" class="jive-image image-4 j-img-original" src="https://community.esri.com/legacyfs/online/366850_pastedImage_6.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another solution would be to hide img tags with empty src with some css:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;head&amp;gt;
&amp;lt;style&amp;gt;
img[src=""] {
 display: none;
}
&amp;lt;/style&amp;gt;
&amp;lt;/head&amp;gt;&lt;/PRE&gt;&lt;P&gt;This even makes the empty space disappear in the web map pop up,&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366853" class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/366853_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;but displays in&amp;nbsp;WAB like:&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="366857" class="image-7 jive-image" src="https://community.esri.com/legacyfs/online/366857_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Finally this happens&lt;/STRONG&gt;: I close the webmap completely, and open it again. Now the pop up is "messed" up like the one in WAB, and looking at the code, the &amp;lt;head&amp;gt; and &amp;lt;style&amp;gt; tags are gone and the &lt;SPAN&gt;img[src=""] is replaced by&amp;nbsp;img[src=&amp;amp;quot;&amp;amp;quot;], and with the first solution, the &amp;lt;object&amp;gt; tags have vanished.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Guess I have to abandon this, but anyway thanks in advance for any hint,&lt;/P&gt;&lt;P&gt;Annina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/space/2150" target="_blank"&gt;Web AppBuilder for ArcGIS&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-webmap-vs-pop-up-wab/m-p/389718#M19492</guid>
      <dc:creator>AnninaHirschi_Wyss1</dc:creator>
      <dc:date>2021-12-12T16:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Pop up webmap vs Pop up WAB</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/pop-up-webmap-vs-pop-up-wab/m-p/389719#M19493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Funny,&amp;nbsp;it seems the latest AGOL update brought some changes. At least, the broken image-icons are gone, and it looks as expected in the WebMap as well as in WAB. There is just some little more space, when an image is missing. The code is simply:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;img src="{Layer1}" style="width:230px"/&amp;gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;img src="{Layer2}" style="width:230px"/&amp;gt;
&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;lt;img src="{Layer3}" style="width:230px"/&amp;gt;&lt;/PRE&gt;...&lt;/PRE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 17:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/pop-up-webmap-vs-pop-up-wab/m-p/389719#M19493</guid>
      <dc:creator>AnninaHirschi_Wyss1</dc:creator>
      <dc:date>2021-12-11T17:52:41Z</dc:date>
    </item>
  </channel>
</rss>

