<?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 Displaying TIF files in PopupContent in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/displaying-tif-files-in-popupcontent/m-p/1119405#M7375</link>
    <description>&lt;P&gt;As part of my ongoing project, I often find a need to use the PopupContent class to present data related to a map feature. Usually, this is either a PDF or via a URL link to a website. However, in my latest task, I've found the data I need to present is stored as TIF images on a network share. If I use the code below, it opens the PopupContent window, but instead of displaying the image, it brings up a download dialog which is not the behavior I was expecting.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;filePath = "\\\\server\\Folder\\" + fileName + ".tiff";&lt;/P&gt;&lt;P&gt;var popup = new List&amp;lt;PopupContent&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;new PopupContent(new Uri(filePath), "TIFF Viewer")&lt;BR /&gt;};&lt;BR /&gt;&amp;nbsp;MapView.Active.ShowCustomPopup(popup);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This has worked with other file types, such as PDFs, but not TIFs, so my guess is there's no native support for viewing a TIF in the custom popups. When doing Google searches, I seem to find plenty of info on displaying TIFs as a map layer, but that's not my goal. I just want to display a graphic in a popup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how that might be accomplished?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Nov 2021 23:39:04 GMT</pubDate>
    <dc:creator>RogerAsbury</dc:creator>
    <dc:date>2021-11-22T23:39:04Z</dc:date>
    <item>
      <title>Displaying TIF files in PopupContent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/displaying-tif-files-in-popupcontent/m-p/1119405#M7375</link>
      <description>&lt;P&gt;As part of my ongoing project, I often find a need to use the PopupContent class to present data related to a map feature. Usually, this is either a PDF or via a URL link to a website. However, in my latest task, I've found the data I need to present is stored as TIF images on a network share. If I use the code below, it opens the PopupContent window, but instead of displaying the image, it brings up a download dialog which is not the behavior I was expecting.&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;filePath = "\\\\server\\Folder\\" + fileName + ".tiff";&lt;/P&gt;&lt;P&gt;var popup = new List&amp;lt;PopupContent&amp;gt;&lt;BR /&gt;{&lt;BR /&gt;new PopupContent(new Uri(filePath), "TIFF Viewer")&lt;BR /&gt;};&lt;BR /&gt;&amp;nbsp;MapView.Active.ShowCustomPopup(popup);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This has worked with other file types, such as PDFs, but not TIFs, so my guess is there's no native support for viewing a TIF in the custom popups. When doing Google searches, I seem to find plenty of info on displaying TIFs as a map layer, but that's not my goal. I just want to display a graphic in a popup.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on how that might be accomplished?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 23:39:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/displaying-tif-files-in-popupcontent/m-p/1119405#M7375</guid>
      <dc:creator>RogerAsbury</dc:creator>
      <dc:date>2021-11-22T23:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying TIF files in PopupContent</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/displaying-tif-files-in-popupcontent/m-p/1125549#M7483</link>
      <description>&lt;P&gt;I'm guessing since PopupContent uses html, and since html can't display tiff images, there's no easy way.&lt;/P&gt;&lt;P&gt;There &lt;EM&gt;might&lt;/EM&gt; be a hard way though:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Modify the CustomPopup sample's &lt;A href="https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomPopup/template.html" target="_self"&gt;template.html&lt;/A&gt; so that it uses &lt;A href="https://github.com/seikichi/tiff.js" target="_self"&gt;tiff.js&lt;/A&gt; which allegedly converts tiff's to png.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 19:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/displaying-tif-files-in-popupcontent/m-p/1125549#M7483</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2021-12-13T19:17:09Z</dc:date>
    </item>
  </channel>
</rss>

