<?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: Can't load popup defined in the service feature that's added to the map later in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693478#M671</link>
    <description>&lt;P&gt;2 ideas to try first:&lt;/P&gt;&lt;P&gt;- Can you try setting&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geoviewproxy/identify(on:screenpoint:tolerance:returnpopupsonly:maximumresults:)-7mgn2#parameters" target="_self"&gt;returnPopupsOnly&lt;/A&gt; to &lt;STRONG&gt;true&lt;/STRONG&gt; in your identify method?&lt;/P&gt;&lt;P&gt;- Can you try your data with this example code snippet,&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/blob/main/Examples/Examples/PopupExampleView.swift" target="_blank"&gt;&lt;SPAN&gt;PopupExampleView&lt;/SPAN&gt;&lt;/A&gt;? If you can download and open the toolkit example project, and swap your data to try if it works.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2026 17:25:03 GMT</pubDate>
    <dc:creator>Ting</dc:creator>
    <dc:date>2026-03-30T17:25:03Z</dc:date>
    <item>
      <title>Can't load popup defined in the service feature that's added to the map later</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693328#M667</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We're trying to open a popup defined in an external service, but the iOS/Swift (200.x) SDK doesn't seem to respect the `popupInfo` definition.&lt;/P&gt;&lt;P&gt;This is our setup:&lt;BR /&gt;- load map (eg basemap)&lt;BR /&gt;- after map is loaded, add external layer using `let featureTable = ServiceFeatureTable(url: url), let layer = FeatureLayer(featureTable: featureTable), map.addOperationLayer(layer)`&lt;BR /&gt;- after layer is loaded, go to a point defined in the layer and tap&lt;BR /&gt;- fields defined for that point are loaded/visible, but media/attachments are not&lt;/P&gt;&lt;P&gt;When inspecting the result of `IdentifyLayerResult`, the `popups` property is empty. When inspecting the service layer, after layer.load(), the `popupDefinition` is not set, popupsAreEnabled is set to true.&lt;/P&gt;&lt;P&gt;Any suggestions on what should we try? Is this use case supported?&lt;/P&gt;&lt;P&gt;Thank you,&lt;BR /&gt;Marius&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 10:13:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693328#M667</guid>
      <dc:creator>tsroyh</dc:creator>
      <dc:date>2026-03-30T10:13:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load popup defined in the service feature that's added to the map later</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693478#M671</link>
      <description>&lt;P&gt;2 ideas to try first:&lt;/P&gt;&lt;P&gt;- Can you try setting&amp;nbsp;&lt;A href="https://developers.arcgis.com/swift/api-reference/documentation/arcgis/geoviewproxy/identify(on:screenpoint:tolerance:returnpopupsonly:maximumresults:)-7mgn2#parameters" target="_self"&gt;returnPopupsOnly&lt;/A&gt; to &lt;STRONG&gt;true&lt;/STRONG&gt; in your identify method?&lt;/P&gt;&lt;P&gt;- Can you try your data with this example code snippet,&amp;nbsp;&lt;A href="https://github.com/Esri/arcgis-maps-sdk-swift-toolkit/blob/main/Examples/Examples/PopupExampleView.swift" target="_blank"&gt;&lt;SPAN&gt;PopupExampleView&lt;/SPAN&gt;&lt;/A&gt;? If you can download and open the toolkit example project, and swap your data to try if it works.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 17:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693478#M671</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2026-03-30T17:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load popup defined in the service feature that's added to the map later</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693591#M672</link>
      <description>&lt;P&gt;I've tried both of the above, and I think the issue is related to the feature service, probably being treated different in by the Swift SDK than the web SDK.&lt;/P&gt;&lt;P&gt;The above works fine on the web&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.arcgis.com/apps/mapviewer/index.html?url=https://review.tabletcommand.com/fake/api/rest/services/features/FeatureServer/2" target="_blank"&gt;https://www.arcgis.com/apps/mapviewer/index.html?url=https://review.tabletcommand.com/fake/api/rest/services/features/FeatureServer/2&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I can't &amp;nbsp;import the same layer into a simple web map, in ArcGIS online.&lt;/P&gt;&lt;P&gt;Is there a way I can validate the feature service against the Swift SDK?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Mar 2026 04:51:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1693591#M672</guid>
      <dc:creator>marius</dc:creator>
      <dc:date>2026-03-31T04:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load popup defined in the service feature that's added to the map later</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1696059#M677</link>
      <description>&lt;P&gt;I've done further testing, and it seems that if you're trying to access the style/popover info from a feature service that's added to a basemap by URL, the popover definition does not come through. It comes through only if it's loaded by itemId.&lt;/P&gt;&lt;P&gt;e.g. for the following layer, &lt;A href="https://services3.arcgis.com/zGXMcUaDlMGoFJXg/ArcGIS/rest/services/Some_Cities_-_Test_Marius/FeatureServer" target="_blank"&gt;https://services3.arcgis.com/zGXMcUaDlMGoFJXg/ArcGIS/rest/services/Some_Cities_-_Test_Marius/FeatureServer&lt;/A&gt;, I've configured the style to show the points as red triangles, and popup info to show the image/fields. If I add that layer to a new map, on the web &lt;A href="https://www.arcgis.com/apps/mapviewer/index.html?url=xyz" target="_blank"&gt;https://www.arcgis.com/apps/mapviewer/index.html?url=xyz&lt;/A&gt;, or the iOS SDK (create new basemap, then add layer), the style/popup info are not transfered.&lt;/P&gt;&lt;P&gt;If in the same web portal map view (or iOS SDK), I create a map, and then add a layer by itemId ("025c29157a6a497eb75d12769f7eb61d"), the style/popup info are visible.&lt;/P&gt;&lt;P&gt;Is this the expected behaviour for the iOS SDK/map portal?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Tue, 14 Apr 2026 11:09:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1696059#M677</guid>
      <dc:creator>marius</dc:creator>
      <dc:date>2026-04-14T11:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can't load popup defined in the service feature that's added to the map later</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1697324#M682</link>
      <description>&lt;P&gt;Hi folks, sorry for the late response as we were preparing for the next release for the last couple of weeks.&lt;/P&gt;&lt;P&gt;As Marius said, it is an expected behavior. The popup definition is stored in the portal item’s JSON as an override, so it will not be available in the feature table or layer unless it is loaded using the item ID. See the following JSONs from the feature server and the portal item you provided&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Portal item JSON:&amp;nbsp;&lt;A href="https://www.arcgis.com/sharing/rest/content/items/025c29157a6a497eb75d12769f7eb61d/data" target="_blank" rel="noopener"&gt;https://www.arcgis.com/sharing/rest/content/items/025c29157a6a497eb75d12769f7eb61d/data&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Feature layer JSON:&amp;nbsp;&lt;A href="https://services3.arcgis.com/zGXMcUaDlMGoFJXg/ArcGIS/rest/services/Some_Cities_-_Test_Marius/FeatureServer/0?f=json" target="_blank" rel="noopener"&gt;https://services3.arcgis.com/zGXMcUaDlMGoFJXg/ArcGIS/rest/services/Some_Cities_-_Test_Marius/FeatureServer/0?f=json&lt;/A&gt;&amp;nbsp;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;See &lt;EM&gt;"drawingInfo"&lt;/EM&gt; field for the difference in the point symbology. The feature layer uses&amp;nbsp;&lt;EM&gt;RedSphere.png&lt;/EM&gt; while the portal item overrides it with an &lt;EM&gt;esriSMSTriangle&lt;/EM&gt;. So when you add the layer via URL, it shows the red dots, and when you add it via a portal item, it shows the red triangles.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"popupInfo"&lt;/EM&gt;&amp;nbsp;field is stored within the portal item, so only when you add it that way would you be able to get the popup definitions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have further questions!&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2026 20:54:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/can-t-load-popup-defined-in-the-service-feature/m-p/1697324#M682</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2026-04-20T20:54:26Z</dc:date>
    </item>
  </channel>
</rss>

