<?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: iOS - How to add UI elements on top of AGSMapView in Implementing ArcGIS Questions</title>
    <link>https://community.esri.com/t5/implementing-arcgis-questions/ios-how-to-add-ui-elements-on-top-of-agsmapview/m-p/478568#M452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729; text-decoration: underline;"&gt;I actually just solved this. Here is the updated code that works:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.map = AGSMap(basemapType: .navigationVector,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; latitude: currentLocation.latitude, longitude: currentLocation.longitude,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levelOfDetail: zoomLevel)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.graphicsOverlays.add(overlay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.touchDelegate = &lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729; text-decoration: underline;"&gt;I removed:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #242729; border: none windowtext 1.0pt; padding: 0in; background: #EFF0F1;"&gt;let AGSMapView(frame: .zero)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;as this prevented the map from being displayed in MapView.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;Also, by not setting a view (thus using the default view controller "view") all siblings are available for display and can be controlled via "isHidden."&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Sep 2019 20:04:25 GMT</pubDate>
    <dc:creator>SteveEllis1</dc:creator>
    <dc:date>2019-09-18T20:04:25Z</dc:date>
    <item>
      <title>iOS - How to add UI elements on top of AGSMapView</title>
      <link>https://community.esri.com/t5/implementing-arcgis-questions/ios-how-to-add-ui-elements-on-top-of-agsmapview/m-p/478567#M451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using iOS 100.6 and am trying to place a UIbutton on top of AGSMapView. In the View Controller MapView and the UIButton are under "View". The UIbutton is not a subview of MapView. How do I get other UI element in my view to be visible on top of the map. I have three other elements that I hide and unhide using "isHidden = true/false" and these cannot be displayed either. Code in Swift 4.2.&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="color: black; text-decoration: underline;"&gt;Here is the view:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black;"&gt;&lt;IMG alt="View Controller &amp;quot;View&amp;quot;" class="jive-emoji image-1 jive-image" src="/legacyfs/online/459802_view controller view.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Here is the code snippet:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;STRONG&gt;let&lt;/STRONG&gt; viewMap = AGSMapView(frame: .zero)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.map = AGSMap(basemapType: .navigationVector,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; latitude: currentLocation.latitude, longitude: currentLocation.longitude,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levelOfDetail: zoomLevel)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.graphicsOverlays.add(overlay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.touchDelegate = &lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;view = viewMap&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;view.bringSubviewToFront(btnSatelliteToggle)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 03:24:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/implementing-arcgis-questions/ios-how-to-add-ui-elements-on-top-of-agsmapview/m-p/478567#M451</guid>
      <dc:creator>SteveEllis1</dc:creator>
      <dc:date>2019-09-18T03:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: iOS - How to add UI elements on top of AGSMapView</title>
      <link>https://community.esri.com/t5/implementing-arcgis-questions/ios-how-to-add-ui-elements-on-top-of-agsmapview/m-p/478568#M452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729; text-decoration: underline;"&gt;I actually just solved this. Here is the updated code that works:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.map = AGSMap(basemapType: .navigationVector,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; latitude: currentLocation.latitude, longitude: currentLocation.longitude,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; levelOfDetail: zoomLevel)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.graphicsOverlays.add(overlay)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background: white;"&gt;&lt;SPAN style="color: #000000;"&gt;viewMap.touchDelegate = &lt;STRONG&gt;self&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729; text-decoration: underline;"&gt;I removed:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #242729; border: none windowtext 1.0pt; padding: 0in; background: #EFF0F1;"&gt;let AGSMapView(frame: .zero)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;as this prevented the map from being displayed in MapView.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 12.0pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #242729;"&gt;Also, by not setting a view (thus using the default view controller "view") all siblings are available for display and can be controlled via "isHidden."&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2019 20:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/implementing-arcgis-questions/ios-how-to-add-ui-elements-on-top-of-agsmapview/m-p/478568#M452</guid>
      <dc:creator>SteveEllis1</dc:creator>
      <dc:date>2019-09-18T20:04:25Z</dc:date>
    </item>
  </channel>
</rss>

