<?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 How to load a web map from URL into ArcGIS SDK fro MacOS in Swift in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-load-a-web-map-from-url-into-arcgis-sdk-fro/m-p/673899#M4607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to load OpenStreetMap into a program I'm writing in Swift, using the ArcGIS SDK for macOS. I have the loading of built in maps (theMap.map = AGSMap(basemap: AGSBasemap.imagery())) working but I cannot seem to load OpenStreetMap from its URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the URL I am using:&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71" rel="nofollow noreferrer noopener" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this code but it does not work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;let tiledLayer = AGSArcGISTiledLayer(url: URL(string: "https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71/MapServer")!)

let basemap = AGSBasemap(baseLayer: tiledLayer)
theMap.map?.basemap = basemap&lt;/PRE&gt;&lt;P&gt;I am completely out of ideas and have no idea what to do. All I want to do is display the OpenStreetMap from the URL in my map, how can I do it? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 16:46:04 GMT</pubDate>
    <dc:creator>HenryHunt1</dc:creator>
    <dc:date>2021-12-12T16:46:04Z</dc:date>
    <item>
      <title>How to load a web map from URL into ArcGIS SDK fro MacOS in Swift</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-load-a-web-map-from-url-into-arcgis-sdk-fro/m-p/673899#M4607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to load OpenStreetMap into a program I'm writing in Swift, using the ArcGIS SDK for macOS. I have the loading of built in maps (theMap.map = AGSMap(basemap: AGSBasemap.imagery())) working but I cannot seem to load OpenStreetMap from its URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the URL I am using:&amp;nbsp;&lt;A href="https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71" rel="nofollow noreferrer noopener" target="_blank"&gt;https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this code but it does not work:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;let tiledLayer = AGSArcGISTiledLayer(url: URL(string: "https://www.arcgis.com/home/item.html?id=b834a68d7a484c5fb473d4ba90d35e71/MapServer")!)

let basemap = AGSBasemap(baseLayer: tiledLayer)
theMap.map?.basemap = basemap&lt;/PRE&gt;&lt;P&gt;I am completely out of ideas and have no idea what to do. All I want to do is display the OpenStreetMap from the URL in my map, how can I do it? Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:46:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-load-a-web-map-from-url-into-arcgis-sdk-fro/m-p/673899#M4607</guid>
      <dc:creator>HenryHunt1</dc:creator>
      <dc:date>2021-12-12T16:46:04Z</dc:date>
    </item>
  </channel>
</rss>

