<?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: How to download all feature layers without selecting area through IOS SDK. in ArcGIS Runtime SDK for iOS Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587288#M5072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kamal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be a little more specific about what error you're getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 04:19:01 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2017-03-30T04:19:01Z</dc:date>
    <item>
      <title>How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587285#M5069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to generate a geodatabase which contain all feature layers data so that I can use that database when there is no internet connection but I do not want to give an option to user to select area of interest. &amp;nbsp;All feature layer data should be &amp;nbsp;download automatically in background.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:10:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587285#M5069</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-27T14:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587286#M5070</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kamal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For each layer you specify in the &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;AGSGenerateGeodatabaseParameters&lt;/SPAN&gt; object that you pass to &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geodatabase_sync_task.html#a8c655c7405a23aeacbf6e8d91cb43a0e"&gt;generateJobWithParameters()&lt;/A&gt;&lt;/SPAN&gt;, you can specify an &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_generate_layer_option.html"&gt;AGSGenerateLayerOption&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;object. That object has a &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_generate_layer_option.html#ae89226b8da71a315e425ee6e8b93cf9b"&gt;useGeometry&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;property that you can set to &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;false&lt;/SPAN&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Mar 2017 14:38:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587286#M5070</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-03-27T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587287#M5071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is the code which I am using to download feature layer. Right now I am getting exception "&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;Geometry cannot be null in generate geodatabase parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;". Actually I want to download all feature layer data automatically in background without user selecting area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; FEATURE_SERVICE_URL = &lt;/SPAN&gt;&lt;SPAN class=""&gt;NSURL&lt;/SPAN&gt;&lt;SPAN class=""&gt;(string: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;A class="link-titled" href="https://services7.arcgis.com/JRY73mi2cJ1KeR7T/arcgis/rest/services/NewYorkHospitalLayer/FeatureServer/0" title="https://services7.arcgis.com/JRY73mi2cJ1KeR7T/arcgis/rest/services/NewYorkHospitalLayer/FeatureServer/0"&gt;https://services7.arcgis.com/JRY73mi2cJ1KeR7T/arcgis/rest/services/NewYorkHospitalLayer/FeatureServer/0&lt;/A&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt; syncTask:&lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGeodatabaseSyncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt; generateJob:&lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGenerateGeodatabaseJob&lt;/SPAN&gt;&lt;SPAN class=""&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;private&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt; generatedGeodatabase:&lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGeodatabase&lt;/SPAN&gt;&lt;SPAN class=""&gt;!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;override&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;func&lt;/SPAN&gt;&lt;SPAN class=""&gt; viewDidLoad() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;super&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;viewDidLoad&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;map&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSMap&lt;/SPAN&gt;&lt;SPAN class=""&gt;(basemap: &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSBasemap&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;streetsBasemap&lt;/SPAN&gt;&lt;SPAN class=""&gt;())&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;syncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGeodatabaseSyncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt;(URL: &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;FEATURE_SERVICE_URL&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;addFeatureLayers&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;mapView&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;map&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;map&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;self.&lt;SPAN&gt;generateGeodatabase&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;func&lt;/SPAN&gt;&lt;SPAN class=""&gt; addFeatureLayers() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;syncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;loadWithCompletion&lt;/SPAN&gt;&lt;SPAN class=""&gt; { [weak &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;] (error) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Void&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; error = error {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;print&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Could not load feature service &lt;/SPAN&gt;&lt;SPAN class=""&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;error&lt;/SPAN&gt;&lt;SPAN class=""&gt;)"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;} &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;guard&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; weakSelf = &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;for&lt;/SPAN&gt;&lt;SPAN class=""&gt; (index, layerInfo) &lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;SPAN class=""&gt; weakSelf.&lt;/SPAN&gt;&lt;SPAN class=""&gt;syncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;featureServiceInfo&lt;/SPAN&gt;&lt;SPAN class=""&gt;!.&lt;/SPAN&gt;&lt;SPAN class=""&gt;layerInfos&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;enumerate&lt;/SPAN&gt;&lt;SPAN class=""&gt;().&lt;/SPAN&gt;&lt;SPAN class=""&gt;reverse&lt;/SPAN&gt;&lt;SPAN class=""&gt;() {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//For each layer in the serice, add a layer to the map&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; layerURL = weakSelf.&lt;/SPAN&gt;&lt;SPAN class=""&gt;FEATURE_SERVICE_URL&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;URLByAppendingPathComponent&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;String&lt;/SPAN&gt;&lt;SPAN class=""&gt;(index))&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; featureTable = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSServiceFeatureTable&lt;/SPAN&gt;&lt;SPAN class=""&gt;(URL:layerURL!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; featureLayer = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSFeatureLayer&lt;/SPAN&gt;&lt;SPAN class=""&gt;(featureTable: featureTable)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;featureLayer.&lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;SPAN class=""&gt; = layerInfo.&lt;/SPAN&gt;&lt;SPAN class=""&gt;name&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;featureLayer.&lt;/SPAN&gt;&lt;SPAN class=""&gt;opacity&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;0.65&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;weakSelf.&lt;/SPAN&gt;&lt;SPAN class=""&gt;map&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;operationalLayers&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;addObject&lt;/SPAN&gt;&lt;SPAN class=""&gt;(featureLayer)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;func&lt;/SPAN&gt;&lt;SPAN class=""&gt; generateGeodatabase(&lt;/SPAN&gt;&lt;SPAN class=""&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//create AGSGenerateLayerOption objects with selected layerIds&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt;&lt;SPAN class=""&gt; layerOptions = [&lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGenerateLayerOption&lt;/SPAN&gt;&lt;SPAN class=""&gt;]()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; layerOption = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGenerateLayerOption&lt;/SPAN&gt;&lt;SPAN class=""&gt;(layerID: 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&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;layerOption.useGeometry = false&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;layerOptions.&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN class=""&gt;(layerOption)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//parameters&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; params = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSGenerateGeodatabaseParameters&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;params.&lt;/SPAN&gt;&lt;SPAN class=""&gt;layerOptions&lt;/SPAN&gt;&lt;SPAN class=""&gt; = layerOptions&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;params.&lt;/SPAN&gt;&lt;SPAN class=""&gt;returnAttachments&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;params.&lt;/SPAN&gt;&lt;SPAN class=""&gt;attachmentSyncDirection&lt;/SPAN&gt;&lt;SPAN class=""&gt; = .&lt;/SPAN&gt;&lt;SPAN class=""&gt;Bidirectional&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//name for the geodatabase&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; dateFormatter = &lt;/SPAN&gt;&lt;SPAN class=""&gt;NSDateFormatter&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;dateFormatter.&lt;/SPAN&gt;&lt;SPAN class=""&gt;dateFormat&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"yyyy-MM-dd'T'HH:mm:ssZ"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; path = &lt;/SPAN&gt;&lt;SPAN class=""&gt;NSSearchPathForDirectoriesInDomains&lt;/SPAN&gt;&lt;SPAN class=""&gt;(.&lt;/SPAN&gt;&lt;SPAN class=""&gt;DocumentDirectory&lt;/SPAN&gt;&lt;SPAN class=""&gt;, .&lt;/SPAN&gt;&lt;SPAN class=""&gt;UserDomainMask&lt;/SPAN&gt;&lt;SPAN class=""&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;&lt;SPAN class=""&gt;)[&lt;/SPAN&gt;&lt;SPAN class=""&gt;0&lt;/SPAN&gt;&lt;SPAN class=""&gt;]&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; fullPath = &lt;/SPAN&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;SPAN class=""&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;path&lt;/SPAN&gt;&lt;SPAN class=""&gt;)/&lt;/SPAN&gt;&lt;SPAN class=""&gt;\&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;dateFormatter.&lt;/SPAN&gt;&lt;SPAN class=""&gt;stringFromDate&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;NSDate&lt;/SPAN&gt;&lt;SPAN class=""&gt;())&lt;/SPAN&gt;&lt;SPAN class=""&gt;).geodatabase"&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//create a generate job from the sync task&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;generateJob&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;syncTask&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;generateJobWithParameters&lt;/SPAN&gt;&lt;SPAN class=""&gt;(params, downloadFileURL: &lt;/SPAN&gt;&lt;SPAN class=""&gt;NSURL&lt;/SPAN&gt;&lt;SPAN class=""&gt;(string: fullPath)!)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;//start the job&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;generateJob&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;startWithStatusHandler&lt;/SPAN&gt;&lt;SPAN class=""&gt;({ (status: &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSJobStatus&lt;/SPAN&gt;&lt;SPAN class=""&gt;) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Void&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SVProgressHUD&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;showWithStatus&lt;/SPAN&gt;&lt;SPAN class=""&gt;(status.&lt;/SPAN&gt;&lt;SPAN class=""&gt;statusString&lt;/SPAN&gt;&lt;SPAN class=""&gt;(), maskType: .&lt;/SPAN&gt;&lt;SPAN class=""&gt;Gradient&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}) { [weak &lt;/SPAN&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;] (object: &lt;/SPAN&gt;&lt;SPAN class=""&gt;AnyObject&lt;/SPAN&gt;&lt;SPAN class=""&gt;?, error: &lt;/SPAN&gt;&lt;SPAN class=""&gt;NSError&lt;/SPAN&gt;&lt;SPAN class=""&gt;?) -&amp;gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;Void&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;in&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;if&lt;/SPAN&gt;&lt;SPAN class=""&gt; &lt;/SPAN&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; error = error {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SVProgressHUD&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;showErrorWithStatus&lt;/SPAN&gt;&lt;SPAN class=""&gt;(error.&lt;/SPAN&gt;&lt;SPAN class=""&gt;localizedDescription&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;else&lt;/SPAN&gt;&lt;SPAN class=""&gt; {&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;SVProgressHUD&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;dismiss&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Print("Database generated successfully")&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Mar 2017 13:27:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587287#M5071</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-29T13:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587288#M5072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Kamal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you be a little more specific about what error you're getting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 04:19:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587288#M5072</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-03-30T04:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587289#M5073</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nicholas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have updated my above code and I am getting below exception:&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;"Geometry cannot be null in generate geodatabase parameters."&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 09:34:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587289#M5073</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-30T09:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587290#M5074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-userid="248620" data-username="kamalmtxb2b" href="https://community.esri.com/people/kamalmtxb2b" style="color: #3778c7; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: underline; font-size: 1.286rem;"&gt;Kamal Mittal&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Maybe you can try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Based on our REST API, the Create Replica expects you to have geometry for sure:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;"&gt;ArcGIS REST API - Create Replica&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;UL style="color: #4d4d4d; background-color: #ffffff; border: 0px; font-size: 12.16px;"&gt;&lt;LI style="border: 0px; font-size: 12.16px; margin: 0px 0px 5px 30px; padding: 0px 0px 0px 5px;"&gt;Envelope simple syntax: &lt;SPAN class="" style="border: 0px; font-size: 12.16px;"&gt;geometryType=esriGeometryEnvelope&amp;amp;geometry=&amp;lt;xmin&amp;gt;,&amp;lt;ymin&amp;gt;,&amp;lt;xmax&amp;gt;,&amp;lt;ymax&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="" style="border: 0px; font-size: 12.16px;"&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;2. Then we compare Runtime iOS SDK how to get Envelope. Then we will found this Class:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_envelope.html" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_envelope.html"&gt;ArcGIS Runtime SDK for iOS: AGSEnvelope Class Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Then&amp;nbsp;we check generate Geodatabase Class, we saw this property: &lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geodatabase.html#aec009fad65f5d8ccdb18addd1e84ef0a" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geodatabase.html#aec009fad65f5d8ccdb18addd1e84ef0a"&gt;generateGeodatabaseExtent property&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. The rest we need to do is how to pass the AGSMapView's AGSEnvelope as a parameter to&amp;nbsp;&lt;A href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geodatabase.html#aec009fad65f5d8ccdb18addd1e84ef0a" style="color: #2989c5; text-decoration: underline;" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_geodatabase.html#aec009fad65f5d8ccdb18addd1e84ef0a"&gt;generateGeodatabaseExtent&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. In &lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_map_view.html#a3182d8f1b7c91094ee96a54d7f5545b4" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_map_view.html#a3182d8f1b7c91094ee96a54d7f5545b4"&gt;AGSMapView Class Reference&lt;/A&gt;&amp;nbsp;there is a &amp;nbsp;visibleArea property. it is a AGSPolygon type, if you check this class, you will find there is a property called&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_polygon.html#a3525fc4f16b41a2b860d81db35e11db9" title="https://developers.arcgis.com/ios/latest/api-reference/interface_a_g_s_polygon.html#a3525fc4f16b41a2b860d81db35e11db9"&gt;AGSEnvelope property in AGSPolygon&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. So technically you can use this line of code to assign the mapview extent as generate Geodatabase Extent:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;generateGeodatabaseExtent &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; self&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mapview&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;visibleArea&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;extent‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/&amp;lt;strong&amp;gt;&amp;lt;/strong&amp;gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this can help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Nathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 18:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587290#M5074</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-03-30T18:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587291#M5075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the additional info, &lt;A href="https://community.esri.com/migrated-users/36939"&gt;Yue Wu&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/248620"&gt;Kamal Mittal&lt;/A&gt; To clarify, even though you need to provide&amp;nbsp;a geometry to the &lt;SPAN style="font-family: 'andale mono', monospace;"&gt;AGSGenerateGeodatabaseParameters.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;extent&lt;/SPAN&gt; property, setting the layer options as you did should override that and return all data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 19:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587291#M5075</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-03-30T19:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587292#M5076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Yue Wu for good explanation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:27:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587292#M5076</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-31T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587293#M5077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicholas. Now I am able to get all layer data. There is one question for you. Can I include multiple feature layer url's data into same geodatabase and can use it when offline?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:30:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587293#M5077</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-31T14:30:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587294#M5078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My pleasure. As long as your feature layers are all come from the same feature service url, for example:&amp;nbsp;&lt;A class="link-titled" href="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer" title="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Sync/WildfireSync/FeatureServer"&gt;Sync/WildfireSync (FeatureServer)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this feature service, there are three feature layers, and you can use REST to create Replica and the download offline geodatabase can be use in offline mode as long as you setup all three layers to be downloaded.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:24:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587294#M5078</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-03-31T16:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587295#M5079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually I have two different csv files which contain hospital and fire-hydrant data. I have uploaded them to ArcGIS online from the Add data option. Then it create two layers under content section and I have save them as a separate layer and publish it to ArcGIS online as feature layer so I get two different feature layer urls. So my question is can I&amp;nbsp;publish these two layers as a single like&amp;nbsp;&lt;SPAN&gt;Sync/WildfireSync from ArcGIS online?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Another thing is that I have one use case like "42 street is not accessible in newyork city". so how I show that usecase into Arcgis online basemap and publish it as a feature layer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Last thing is that I am bit confuse about "&lt;SPAN style="background-color: #ffffff;"&gt;REST to create Replica". How do I use that and how it can be helpful for me in IOS app.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Kamal&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 18:02:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587295#M5079</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-03-31T18:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587296#M5080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:06:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587296#M5080</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-04-03T17:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587297#M5081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@&lt;A _jive_internal="true" data-userid="248620" data-username="kamalmtxb2b" href="https://community.esri.com/people/kamalmtxb2b" style="color: #8ca9cd; background-color: #ffffff; border: 0px; font-weight: 200; text-decoration: none; font-size: 1.286rem;"&gt;Kamal Mittal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For hosted feature services, you&amp;nbsp;need to use ArcMap to convert all your csv file by right click and choose Display XY Data. Here is a screenshot to illustrate this. For more information, please check our ArcMap doc&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/adding-x-y-coordinate-data-as-a-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/adding-x-y-coordinate-data-as-a-layer.htm"&gt;Adding x,y coordinate data as a layer—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345159_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then you can remove all your original .csv file and publish all the layer to your ArcGIS Online as hosted feature service. In this way, you will have one feature service that contains more than one layer. Here is a screenshot:&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/345161_pastedImage_3.png" style="width: 620px; height: 936px;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However for hosted feature service you do not have all the options to manually change prepare the data to use sync capabilities. Based on our doc&amp;nbsp;&lt;A class="link-titled" href="http://server.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-offline-use.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/prepare-data-for-offline-use.htm"&gt;Prepare data for offline use—Documentation | ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the question about how REST create Replica works, I would recommend you first read our REST API doc first:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/" title="http://resources.arcgis.com/en/help/arcgis-rest-api/#/Create_Replica/02r3000000rp000000/"&gt;Create Replica - ArcGIS REST API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then combine with our Runtime iOS SDK doc talks about&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/ios/latest/swift/guide/sync-offline-edits.htm" title="https://developers.arcgis.com/ios/latest/swift/guide/sync-offline-edits.htm"&gt;Sync offline edits—ArcGIS Runtime SDK for iOS | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Apr 2017 17:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587297#M5081</guid>
      <dc:creator>YueWu1</dc:creator>
      <dc:date>2017-04-03T17:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587298#M5082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey &lt;A href="https://community.esri.com/migrated-users/248620"&gt;Kamal&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Services with Multiple Layers&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;For creating multiple layers within one service from CSVs, as Yue mentions you currently have to&amp;nbsp;use&amp;nbsp;the Desktop tools. There are plans for an enhancement to enable this without Desktop tools&amp;nbsp;but I don't have a timeline.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;If you had Shapefiles instead of CSVs, you could combine the Shapefiles for each layer you want in a single folder, zip up that folder, and upload it. The zip file name will determine the Service name and each Shapefile will become a Layer within that Service (note: a "Shapefile" is made up many constituent parts - you would combine all those parts from all the Shapefiles in one flat folder,&amp;nbsp;zip that up and upload it).&amp;nbsp;I did that &lt;A href="http://geeknixta.maps.arcgis.com/home/item.html?id=69db727bb6e64830af6e1ef3e1d78e4a"&gt;here&lt;/A&gt;&amp;nbsp;(&lt;A href="http://services.arcgis.com/OfH668nDRN7tbJh0/arcgis/rest/services/WorldData/FeatureServer"&gt;here&lt;/A&gt; is the REST endpoint).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Additionally, if you uploaded a File Geodatabase, that can be published as a Service with many Layers.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;STRONG&gt;REST Actions to Create Replica&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;When you use the Runtime's&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN style="font-family: 'andale mono', monospace;"&gt;AGSGeodatabaseSyncTask&lt;/SPAN&gt;, it's using the REST Create Replica endpoint behind the scenes. Since you're using the Runtime you don't have to worry about this as it wraps all that up for you. Yue was just referring to that.&amp;nbsp;I would add to Yue's response below that you don't need to dig into&amp;nbsp;the REST APIs if you're OK with the Runtime SDK samples, but if you really want to get into the weeds, use the REST docs as reference.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Incidentally, you might find these two videos&amp;nbsp;from the recent Developer Summit useful if you want to find out more about your options for working offline with the Runtime:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://youtu.be/BrVbaSwGmWI" title="https://youtu.be/BrVbaSwGmWI"&gt;ArcGIS Runtime: Working with Maps Online and Offline&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://youtu.be/Jfduyc4Q6o0" title="https://youtu.be/Jfduyc4Q6o0"&gt;ArcGIS Runtime: Editing Your Data Online and Offline&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Nick.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 02:49:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587298#M5082</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-04-04T02:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587299#M5083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicholas for the video sharing and nice&amp;nbsp;explanation. So we have to go with ArcMap or ArcGIS Pro for sharing multiple layers into one service url or to customize shapefile at own level?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 11:59:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587299#M5083</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-04-04T11:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587300#M5084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/248620"&gt;Kamal&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the layers are based off CSVs, that's correct. If they're based off Shapefiles, my above description will get you a single Service with multiple Layers without using ArcMap or ArcGIS Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I'm not sure I understand "customize shapefile at own level". Perhaps you mean modifying shapefiles (changing data, adding or removing fields)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If so, there &lt;EM&gt;is&lt;/EM&gt; some limited stuff you can do in the browser. You can of course edit data and then you&amp;nbsp;can export a FeatureLayer as a Shapefile using the &lt;A href="http://doc.arcgis.com/en/arcgis-online/analyze/extract-data.htm"&gt;Extract Data&lt;/A&gt; analysis tool.&amp;nbsp;In fact,&amp;nbsp;you might be able to&amp;nbsp;use this workflow to upload multiple CSVs, extract them as multiple Shapefiles which you would then put into one folder locally before zipping and&amp;nbsp;uploading that to create&amp;nbsp;a single Service with multiple Layers. It's convoluted, but it should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're also able to &lt;A href="http://doc.arcgis.com/en/arcgis-online/create-maps/show-tables.htm#ESRI_SECTION1_B4C92BBC718144B08C612690B7AC8702"&gt;add and delete&amp;nbsp;fields&lt;/A&gt;&amp;nbsp;from a Feature Layer if you own it. This is done from the Table View in the ArcGIS Online Map Viewer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, the Desktop tools significantly simplify many of these workflows. With Desktop you have good ways to script these workflows too with &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy/what-is-arcpy-.htm"&gt;arcpy&lt;/A&gt;, although the new &lt;A href="https://developers.arcgis.com/python/"&gt;ArcGIS API for Python&lt;/A&gt; might be worth looking at for scripting some of this ArcGIS Online administration without a need for Desktop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 14:51:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587300#M5084</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-04-04T14:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587301#M5085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nicholas for reply.&lt;/P&gt;&lt;P&gt;Currently I have one usecase. I want to indicate in map that "42nd street is not accessible in Newyork due to some emergency" so how I indicate that thing in map( should i indicate red line, area or polygon). Is this possible through arcgis online or I have to go with ArcGIS Pro or ArcMap to create shapefile &amp;nbsp;of that thing and publish it to ArcGIS online? That is my main concern.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 18:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587301#M5085</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-04-04T18:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587302#M5086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Absolutely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far we've been talking about taking existing data that you've obtained elsewhere as a CSV or Shapefile, but it sounds like you actually might simply&amp;nbsp;want an empty FeatureService+Layer for redlining (or perhaps one for points, one for lines, and one for polygons). You can do this at the &lt;A href="https://developers.arcgis.com/layers/#/new/"&gt;developer portal&lt;/A&gt; (log in with your org credentials). This will give you a lot of&amp;nbsp;control over attribute names and types that go with each record. This DevLab explains how to do that:&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/labs/data/create-a-new-dataset/" title="https://developers.arcgis.com/labs/data/create-a-new-dataset/"&gt;Create a new dataset&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you create a layer through the developer portal you will see it in the main &lt;A href="http://arcgis.com/home/content.html"&gt;ArcGIS Online My Content&lt;/A&gt; browser.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is another option that might work for you. You can create a Feature Layer&amp;nbsp;directly in the My Content browser from a Template. Select Create-&amp;gt;Feature Layer, and look at the From Template tab. There's a Road Closures template that could work for you. Here's &lt;A href="https://blogs.esri.com/esri/arcgis/2016/09/27/getting-started-with-the-feature-template-gallery/"&gt;a blog post&lt;/A&gt; about that functionality. [Update: &lt;A href="http://doc.arcgis.com/en/arcgis-online/share-maps/publish-features.htm#ESRI_SECTION1_809F1266856546EF9E6D2CEF3816FD7D"&gt;Here's the documentation&lt;/A&gt; on that too]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. I recommend you take a look at all the &lt;A href="https://developers.arcgis.com/labs/"&gt;DevLabs&lt;/A&gt;, but in particular the &lt;A href="https://developers.arcgis.com/labs/data/index.html"&gt;Data section&lt;/A&gt;&amp;nbsp;sounds like it could be useful to you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 18:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587302#M5086</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2017-04-04T18:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587303#M5087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #222222; background-color: #ffffff; border: 0px; font-weight: inherit; font-size: small;"&gt;Hi Nicholas,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;Thanks for the good explanation. Now I understand all possible scenarios to create a feature layer from ArcGIS online.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;Another thing is that when I try to publish tpk file from ArcGIS Pro to ArcGIS online , it gives me an error "Staging failed". Attached is the screenshot.&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;Last thing is that I am showing vector tile layer through below code in IOS:&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt; &lt;/DIV&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;let&lt;/SPAN&gt;&lt;SPAN class=""&gt; localVectorTiledLayer = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSArcGISVectorTiledLayer&lt;/SPAN&gt;&lt;SPAN class=""&gt;(name: &lt;/SPAN&gt;&lt;SPAN class=""&gt;"StreetMap_Day"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;self&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;map&lt;/SPAN&gt;&lt;SPAN class=""&gt; = &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSMap&lt;/SPAN&gt;&lt;SPAN class=""&gt;(basemap: &lt;/SPAN&gt;&lt;SPAN class=""&gt;AGSBasemap&lt;/SPAN&gt;&lt;SPAN class=""&gt;(baseLayer: localVectorTiledLayer))&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;I want to set initialViewPoint to &lt;STRONG&gt;NewYork City&lt;/STRONG&gt; so how i get x,y and scale coordinates?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/345555_TPKGenerationError.png" style="height: auto;" /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;Thanks,&lt;/DIV&gt;&lt;DIV style="color: #222222; background-color: #ffffff; border: 0px; font-size: small;"&gt;Kamal&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Apr 2017 17:29:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587303#M5087</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-04-05T17:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to download all feature layers without selecting area through IOS SDK.</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587304#M5088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any update on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Kamal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Apr 2017 02:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-ios-questions/how-to-download-all-feature-layers-without/m-p/587304#M5088</guid>
      <dc:creator>KamalMittal</dc:creator>
      <dc:date>2017-04-06T02:48:10Z</dc:date>
    </item>
  </channel>
</rss>

