<?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: hello, i'm beginner,i want create offline map on C# in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396050#M4695</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for answer, this code valid for WPF or windows Form aplication? and how create tpk file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Feb 2017 16:56:25 GMT</pubDate>
    <dc:creator>DachiTsulukidze</dc:creator>
    <dc:date>2017-02-06T16:56:25Z</dc:date>
    <item>
      <title>hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396047#M4692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to my Desktop app could geocoding on different Layers &amp;nbsp;- imagery and topographic, in offline of course. i used sample codes, but i got some errors, so i need help. thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 11:24:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396047#M4692</guid>
      <dc:creator>DachiTsulukidze</dc:creator>
      <dc:date>2017-02-06T11:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396048#M4693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share which samples you have tried and what you need to do in more detail? Have you had a look into the &lt;A href="https://developers.arcgis.com/net/latest/wpf/guide/create-an-offline-map.htm"&gt;Create Offline map documentation&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 12:53:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396048#M4693</guid>
      <dc:creator>AnttiKajanus1</dc:creator>
      <dc:date>2017-02-06T12:53:17Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396049#M4694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a function I use to load the map from a config file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code assumes you have your .geodatabase and/or your tpk's&amp;nbsp;already pulled to your machine. See Antti's comment above for the links to how to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;foreach (var layerConfig in AppConfig.Layers)&lt;BR /&gt; {&lt;BR /&gt; LayerConfigModel layerConfigModel = (LayerConfigModel)JsonConvert.DeserializeObject(layerConfig.SelectToken("config").ToString(),&lt;BR /&gt; typeof (LayerConfigModel), _jsonSerializerSettings);&lt;/P&gt;&lt;P&gt;Guid unkNum = new Guid();&lt;BR /&gt; layerConfigModel.Id = layerConfig["name"]?.ToString()??"UNK"+unkNum;&lt;BR /&gt; &lt;BR /&gt; Layer layerToAdd;&lt;BR /&gt; if (!IsAppOnline)&lt;BR /&gt; {&lt;BR /&gt; layerToAdd = await LoadOfflineLayer(layerConfigModel);&lt;BR /&gt; }&lt;BR /&gt; else&lt;BR /&gt; {&lt;BR /&gt; layerToAdd = LoadOnlineLayer(layerConfigModel);&lt;BR /&gt; }&lt;BR /&gt; AppMapView.Map.Layers.Add(layerToAdd);&lt;BR /&gt; await layerToAdd.InitializeAsync();&lt;/P&gt;&lt;P&gt;TocLayerModel tocLayer = new TocLayerModel(layerConfigModel, layerToAdd, IsAppOnline, UserZone);&lt;BR /&gt; AppMapLayers.Add(tocLayer);&lt;BR /&gt; tocLayer.SetScaleVisiblity(AppMapView.Scale);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;// Load offline layer - Inner loop of LoadOperationalLayers&lt;BR /&gt; private async Task&amp;lt;Layer&amp;gt; LoadOfflineLayer(LayerConfigModel layerConfigModel)&lt;BR /&gt; {&lt;BR /&gt; Layer layerToAdd = null;&lt;BR /&gt; try&lt;BR /&gt; {&lt;BR /&gt; var filePath = System.Configuration.ConfigurationSettings.AppSettings["AppDirectory"] +&lt;BR /&gt; AppConfig.MapConfig["mapConfig"]["user"]["userZone"] +&lt;BR /&gt; layerConfigModel.Id + "." +&lt;BR /&gt; ((layerConfigModel.LayerType == "dynamic") ? "geodatabase" : "tpk");&lt;/P&gt;&lt;P&gt;switch (layerConfigModel.LayerType.ToLower())&lt;BR /&gt; {&lt;BR /&gt; case "image":&lt;BR /&gt; case "static":&lt;BR /&gt; ArcGISLocalTiledLayer localLayer = new ArcGISLocalTiledLayer(filePath);&lt;BR /&gt; await localLayer.InitializeAsync();&lt;BR /&gt; localLayer.ID = layerConfigModel.Id;&lt;BR /&gt; layerToAdd = localLayer;&lt;BR /&gt; break;&lt;BR /&gt; // ReSharper disable once RedundantCaseLabel&lt;BR /&gt; case "dynamic":&lt;BR /&gt; default:&lt;BR /&gt; var gdb = await Geodatabase.OpenAsync(filePath);&lt;BR /&gt; GroupLayer gLayer = new GroupLayer();&lt;BR /&gt; AddLocalGdbToMap(gdb, layerConfigModel, gLayer);&lt;BR /&gt; await gLayer.InitializeAsync();&lt;/P&gt;&lt;P&gt;layerToAdd = gLayer;&lt;BR /&gt; layerToAdd.DisplayName = layerConfigModel.Title;&lt;BR /&gt; break;&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; catch (Exception ex)&lt;BR /&gt; {&lt;BR /&gt; //TODO: Error handling&lt;BR /&gt; Console.WriteLine(ex.Message);&lt;BR /&gt; //MessageBox.Show("Error creating feature layer: " + ex.Message, "Samples");&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return layerToAdd;&lt;BR /&gt; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396049#M4694</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2017-02-06T16:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396050#M4695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for answer, this code valid for WPF or windows Form aplication? and how create tpk file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 16:56:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396050#M4695</guid>
      <dc:creator>DachiTsulukidze</dc:creator>
      <dc:date>2017-02-06T16:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396051#M4696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;thanks for answer,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;No worries&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;gt;&amp;gt; this code valid for WPF or windows Form aplication? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;WPF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;gt;&amp;gt; and how create tpk file?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/net/10-2/desktop/guide/create-an-offline-map.htm" title="https://developers.arcgis.com/net/10-2/desktop/guide/create-an-offline-map.htm"&gt;Create an offline map—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Export Tiles&lt;BR /&gt;&lt;SPAN&gt;URL: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2FMap" rel="nofollow" target="_blank"&gt;http://Map&lt;/A&gt;&lt;SPAN&gt; Service/exportTiles&lt;/SPAN&gt;&lt;BR /&gt;Version Introduced: 10.2.1&lt;BR /&gt;Description&lt;BR /&gt;The exportTiles operation is performed as an asynchronous task and allows client applications to download map tiles from a server for offline use. This operation is performed on a Map Service that allows clients to export cache tiles. The result of this operation is Map Service Job. This job response contains a reference to the Map Service Result resource, which returns a URL to the resulting tile package (.tpk) or a cache raster dataset.&lt;BR /&gt;exportTiles can be enabled in a service by using ArcGIS for Desktop or the ArcGIS Server Administrator Directory. In ArcGIS for Desktop, make an admin or publisher connection to the server, go to service properties, and enable Allow Clients to Export Cache Tiles in the advanced caching page of the Service Editor. You can also specify the maximum tiles clients will be allowed to download. The default maximum allowed tile count is 100,000. To enable this capability using the Administrator Directory, edit the service, and set the properties exportTilesAllowed=true and maxExportTilesCount=100000.&lt;BR /&gt;&lt;SPAN&gt;At 10.2.2 and later versions, exportTiles is supported as an operation of the Map Server. The use of the &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2FMap" rel="nofollow" target="_blank"&gt;http://Map&lt;/A&gt;&lt;SPAN&gt; Service/exportTiles/submitJob operation is deprecated.&lt;/SPAN&gt;&lt;BR /&gt;You can provide arguments to the exportTiles operation as defined in the following parameters table:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;...&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;From the help file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 18:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396051#M4696</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2017-02-06T18:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396052#M4697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry, but url is broken &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 19:58:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396052#M4697</guid>
      <dc:creator>DachiTsulukidze</dc:creator>
      <dc:date>2017-02-06T19:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: hello, i'm beginner,i want create offline map on C#</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396053#M4698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that was not a url&amp;nbsp;sorry.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That is the url to Your map service.. &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2F%5BYOURSERVER%5D%2Farcgis%2Frest%2Fservices%2F%5ByourPublishedService%5D%2FMapService%2FexportTiles" rel="nofollow" target="_blank"&gt;http://[YOURSERVER]/arcgis/rest/services/[yourPublishedService]/MapService/exportTiles&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't have Export Tiles, you need to publish with the cache on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Feb 2017 22:23:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/hello-i-m-beginner-i-want-create-offline-map-on-c/m-p/396053#M4698</guid>
      <dc:creator>JordanBaumgardner</dc:creator>
      <dc:date>2017-02-06T22:23:22Z</dc:date>
    </item>
  </channel>
</rss>

