<?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: Offline Java SDK - map doesn' seem to load in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/offline-java-sdk-map-doesn-seem-to-load/m-p/572470#M1791</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question. The `Basemap`s that you refer to do indeed require an internet connection as you suspected, and so would not display on an offline device, unless they had been taken offline previously. We have a number of workflows available for this, and I have included some resources below which should help you with the problems you are having above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a detailed &lt;A href="https://developers.arcgis.com/java/latest/guide/offline.htm"&gt;working with offline&lt;/A&gt;&amp;nbsp;guide on our ArcGISRuntime for Java SDK web pages that will be of interest to you. We also have a range of samples available on our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java"&gt;Java samples Github&lt;/A&gt;&amp;nbsp;repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically the following samples should be of interest to you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/generate-offline-map-with-local-basemap"&gt;Generating an offline map with a local basemap&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/generate-offline-map"&gt;Generating an offline map&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/open-mobile-map-package"&gt;Opening a mobile map package&lt;/A&gt; ( an archive used to display an offline map)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for Geoserver, you can configure it to provide a WMS or WFS service which can then be consumed within Runtime. Again we have sample code available for&amp;nbsp;the workflow for this under our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/ogc"&gt;Open Geospatial Consortium&lt;/A&gt;&amp;nbsp;section in the repo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps you get your maps offline and with your evaluation of the SDK!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2020 11:35:35 GMT</pubDate>
    <dc:creator>Rachael_Ellen</dc:creator>
    <dc:date>2020-07-23T11:35:35Z</dc:date>
    <item>
      <title>Offline Java SDK - map doesn' seem to load</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/offline-java-sdk-map-doesn-seem-to-load/m-p/572469#M1790</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;(Initial question is updated.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm looking to get a simple sample screen up-and-running to evaluate the Java SDK, but find that an "empty" window pops up only informing&amp;nbsp;"Powered by Esri" in the lower right of the screen and nothing actually loads (indicator just keeps on rotating) and apparently, there's a load error (LoadStatusChangedListener informs on this).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specific causes encountered:&lt;/P&gt;&lt;P&gt;java.net.UnknownHostException: server.arcgisonline.com&lt;/P&gt;&lt;P&gt;java.net.UnknownHostException: services.arcgisonline.com: Name or service not known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I'm running offline, this makes sense. Further investigation points to the fact that the basemap supplied when creating the ArcGISMap instance requires a connection to arcgisonline.com in case of e.g. Basemap.createLightGrayCanvas(). Is there a simple low-detail base map that can be loaded from file, maybe?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moving forward for now with a local GeoServer instance and looking for the right format URL to supply when creating the ArcGISMap. (Initial attempts yield "Unable to instantiate ArcGISMap from this webMapUrl".)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any tips / alternative approach / sample code as to how to proceed or get more extensive logging is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 10:25:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/offline-java-sdk-map-doesn-seem-to-load/m-p/572469#M1790</guid>
      <dc:creator>JaapVriend</dc:creator>
      <dc:date>2020-07-14T10:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Offline Java SDK - map doesn' seem to load</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/offline-java-sdk-map-doesn-seem-to-load/m-p/572470#M1791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your question. The `Basemap`s that you refer to do indeed require an internet connection as you suspected, and so would not display on an offline device, unless they had been taken offline previously. We have a number of workflows available for this, and I have included some resources below which should help you with the problems you are having above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a detailed &lt;A href="https://developers.arcgis.com/java/latest/guide/offline.htm"&gt;working with offline&lt;/A&gt;&amp;nbsp;guide on our ArcGISRuntime for Java SDK web pages that will be of interest to you. We also have a range of samples available on our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java"&gt;Java samples Github&lt;/A&gt;&amp;nbsp;repo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specifically the following samples should be of interest to you:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/generate-offline-map-with-local-basemap"&gt;Generating an offline map with a local basemap&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/generate-offline-map"&gt;Generating an offline map&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/map/open-mobile-map-package"&gt;Opening a mobile map package&lt;/A&gt; ( an archive used to display an offline map)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for Geoserver, you can configure it to provide a WMS or WFS service which can then be consumed within Runtime. Again we have sample code available for&amp;nbsp;the workflow for this under our &lt;A href="https://github.com/Esri/arcgis-runtime-samples-java/tree/master/ogc"&gt;Open Geospatial Consortium&lt;/A&gt;&amp;nbsp;section in the repo.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that helps you get your maps offline and with your evaluation of the SDK!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rachael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 11:35:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/offline-java-sdk-map-doesn-seem-to-load/m-p/572470#M1791</guid>
      <dc:creator>Rachael_Ellen</dc:creator>
      <dc:date>2020-07-23T11:35:35Z</dc:date>
    </item>
  </channel>
</rss>

