<?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: Capture the tap on the link within feature layer popup in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1108428#M7177</link>
    <description>&lt;P&gt;I have similar problem. I know&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_popups_view_controller_delegate-p.html#a519af4abe2eb1a0c1a874a0bbe121afd" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;wantsToShowViewController(ofType:)&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp; has parameter of wantsToShow svc:UIViewController. I want to get the _currentURL. I cannot get the property. I want to cast it to AGSWebViewController, but it complains the type is not in scope. Please help&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 14:51:02 GMT</pubDate>
    <dc:creator>BTDS_GISAdmin</dc:creator>
    <dc:date>2021-10-18T14:51:02Z</dc:date>
    <item>
      <title>Capture the tap on the link within feature layer popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1105664#M7148</link>
      <description>&lt;P&gt;I have the simple iOS app open the map from our enterprise portal by using ArcGIS Runtime SDK.&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;    
    // MARK: - AGSGeoViewTouchDelegate
    func geoView(_ geoView: AGSGeoView, didTapAtScreenPoint screenPoint: CGPoint, mapPoint: AGSPoint) {
        print("AGSGeoViewTouchDelegate Event")
        guard let featureLayer = self.featureLayer else { return }
        print("featureLayer is not null")
        // Identify the specified feature layer.
        mapView.identifyLayer(featureLayer, screenPoint: screenPoint, tolerance: 12, returnPopupsOnly: false) { [weak self] (result: AGSIdentifyLayerResult) in
            guard let self = self else { return }
            if let error = result.error {
                self.presentAlert(message: "Error Display Feature popup")
                print(error)
            } else if !result.popups.isEmpty {
                // Unselect the previous feature.
                featureLayer.clearSelection()
                // Select the new feature.
                let features = result.geoElements as? [AGSFeature]
                let selectedFeature = features?.first
                featureLayer.select(selectedFeature!)
                // Display a popup only if it exists.
                let popupsViewController = AGSPopupsViewController(popups: result.popups)
                // Display the popup as a formsheet -- specified for iPads.
                popupsViewController.modalPresentationStyle = .formSheet
                // Present the popup.
                popupsViewController.delegate = self
                self.present(popupsViewController, animated: true)
            }
        }
    }&lt;/LI-CODE&gt;&lt;P&gt;In the popup, there is some content is a URL. I want to capture the movement when user tap on the link. I will do some other action or redirect to some where else. How can I do it?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 20:00:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1105664#M7148</guid>
      <dc:creator>RaymondLi</dc:creator>
      <dc:date>2021-10-07T20:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Capture the tap on the link within feature layer popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1105737#M7151</link>
      <description>&lt;P&gt;Have you tried the &lt;A href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_popups_view_controller_delegate-p.html#a519af4abe2eb1a0c1a874a0bbe121afd" target="_self"&gt;&lt;STRONG&gt;wantsToShowViewController(ofType:)&lt;/STRONG&gt;&lt;/A&gt; delegate method? I haven't tried it but if the type is &lt;A href="https://developers.arcgis.com/ios/api-reference/_a_g_s_popups_view_controller_delegate_8h.html#a67e4bf67a536291aeb9a894e60a7ad74" target="_blank"&gt;&lt;STRONG&gt;AGSPopupViewControllerTypeWeb&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp;then you could take a custom action. If it's not, then you should &amp;nbsp; still present the view controller using the parameters passed into the delegate method. Does that do what you need?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 23:09:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1105737#M7151</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2021-10-07T23:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Capture the tap on the link within feature layer popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1107943#M7175</link>
      <description>&lt;P&gt;Nicholas,&lt;/P&gt;&lt;P&gt;Thank you. I am able to capture the event when user tap on the link. However, I also want to know the field that user tap on it also? Do you know anything about?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Oct 2021 14:58:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1107943#M7175</guid>
      <dc:creator>RaymondLi</dc:creator>
      <dc:date>2021-10-15T14:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Capture the tap on the link within feature layer popup</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1108428#M7177</link>
      <description>&lt;P&gt;I have similar problem. I know&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/api-reference/protocol_a_g_s_popups_view_controller_delegate-p.html#a519af4abe2eb1a0c1a874a0bbe121afd" target="_self" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;wantsToShowViewController(ofType:)&lt;/STRONG&gt;&lt;/A&gt;&amp;nbsp; has parameter of wantsToShow svc:UIViewController. I want to get the _currentURL. I cannot get the property. I want to cast it to AGSWebViewController, but it complains the type is not in scope. Please help&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 14:51:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/capture-the-tap-on-the-link-within-feature-layer/m-p/1108428#M7177</guid>
      <dc:creator>BTDS_GISAdmin</dc:creator>
      <dc:date>2021-10-18T14:51:02Z</dc:date>
    </item>
  </channel>
</rss>

