<?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 add mxd as layer to a MapView in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477396#M3200</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, Rebecca. Perhaps you can steer me in the right direction. I have access to several RESTful services which provide layers of data. These would lay on top of an actual map. The map itself would be too large (ie take too long) to get over an internet connection and so I want the map to be on the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this map, what would be the best form for it to have on the device, such that it and the RESTful layers could be added to a MapView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Oct 2015 15:34:59 GMT</pubDate>
    <dc:creator>JohnDaues1</dc:creator>
    <dc:date>2015-10-06T15:34:59Z</dc:date>
    <item>
      <title>How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477394#M3198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have Android/Java code that adds layer to a MapView, calling a RESTful service, like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mDynamicServiceLayer = new ArcGISDynamicMapServiceLayer(getResources().getString(R.string.some_url));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(mDynamicServiceLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine. I want to also add a layer that is an mxd file on the device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;string name="mxd_file"&amp;gt;file://storage/emulated/0/Download/mymap.mxd&amp;lt;/string&amp;gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mDynamicServiceLayer = new ArcGISDynamicMapServiceLayer(getResources().getString(R.string.mxd_file));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(mDynamicServiceLayer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This throws the exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; java.lang.IllegalStateException: Scheme 'file' not registered.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ArcGISLocalTiledLayer layer = new ArcGISLocalTiledLayer(getResources().getString(R.string.mxd_file));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mMapView.addLayer(layer);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which gives this error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Failed to ensure directory: /storage/extSdCard/Android/data/arcgis_mmd_maplegends/cache&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: 1em;"&gt;How do I do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:16:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477394#M3198</guid>
      <dc:creator>JohnDaues1</dc:creator>
      <dc:date>2015-10-06T15:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477395#M3199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At least to my knowledge, MXD's are not accessible directly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create a service from the MXD using ArcGIS Server (or ArcGIS Online or Portal). Then you should be able to load it in the same RESTful way as the other service.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:20:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477395#M3199</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-06T15:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477396#M3200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply, Rebecca. Perhaps you can steer me in the right direction. I have access to several RESTful services which provide layers of data. These would lay on top of an actual map. The map itself would be too large (ie take too long) to get over an internet connection and so I want the map to be on the device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this map, what would be the best form for it to have on the device, such that it and the RESTful layers could be added to a MapView?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 15:34:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477396#M3200</guid>
      <dc:creator>JohnDaues1</dc:creator>
      <dc:date>2015-10-06T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477397#M3201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't use/know MapView, so can't help you there.&amp;nbsp; But if the data is from a service, there may be copy write or other restrictions on hosting the data on your own machine if it isn't "your" data.&amp;nbsp; Have you looked into &lt;A href="http://www.arcgis.com/features/" title="http://www.arcgis.com/features/"&gt;http://www.arcgis.com/features/&lt;/A&gt;&amp;nbsp; yet?&amp;nbsp; That gives you the ability to access various ArcGIS and ArcGIS Online datasources, and possibly the ability to create your own services (need an account, although free accounts are available to do some tasks (see the link above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If is data in-house (i.e. your agency has the ArcGIS Server) and you have access to the cache files direct, there are ways to access that with ArcGIS product, but I don't know about MapView.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:12:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477397#M3201</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-06T16:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477398#M3202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is our data, we have an ArcGISServer, so no copyright issues. For a MapView, the layers can be a &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/android/map/Layer.html"&gt;FeatureLayer, RasterLayer, KMLLayer, TiledLayer, DynamicLayer or GraphicsLayer.&lt;/A&gt; Can an mxd be converted to one of these?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477398#M3202</guid>
      <dc:creator>JohnDaues1</dc:creator>
      <dc:date>2015-10-06T16:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477399#M3203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, using ArcGIS Server.&amp;nbsp; There are steps to make sure your MXD is ready for publication. You don't mention what version of ArcGIS Desktop and/or ArcGIS Serve that you have, but here is &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/about-publishing-services.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/about-publishing-services.htm"&gt;About publishing services—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt;&amp;nbsp;&amp;nbsp; You would have to work with you ArcGIS Server administrator so they can publish or give you permissions (depending on how you have it set up internally).&amp;nbsp; The MXD can them be published, at a minimum as a DynamicLayer.&amp;nbsp; TiledLayer mean the services has a cache....etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see your link is to the layer Android API.&amp;nbsp; Have you looked at &lt;A href="http://appstudio.arcgis.com/" title="http://appstudio.arcgis.com/"&gt;AppStudio for ArcGIS&lt;/A&gt;&amp;nbsp;&amp;nbsp; That will let you create one app and deploy in native iOS, Android, and windows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Oct 2015 16:33:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477399#M3203</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-06T16:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477400#M3204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that it is best to use base maps created by esri (or google, or bing). Using the service at this url:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fservices.arcgisonline.com%2FArcGIS%2Frest%2Fservices%2FWorld_Street_Map%2FMapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I can get a base map like so:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mDynamicServiceLayer &lt;/SPAN&gt;= &lt;SPAN style="color: #000080; font-weight: bold;"&gt;new &lt;/SPAN&gt;ArcGISDynamicMapServiceLayer(getResources().getString(R.string.&lt;SPAN style="color: #660e7a; font-weight: bold; font-style: italic;"&gt;world_street_map_url&lt;/SPAN&gt;));&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mMapView&lt;/SPAN&gt;.addLayer(&lt;SPAN style="color: #660e7a; font-weight: bold;"&gt;mDynamicServiceLayer&lt;/SPAN&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So then the task is to have the base map saved to the device so it can be accessed off-line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How is this done?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 16:01:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477400#M3204</guid>
      <dc:creator>JohnDaues1</dc:creator>
      <dc:date>2015-10-08T16:01:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to add mxd as layer to a MapView</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477401#M3205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are going to need it for offline use, you may want to look at some of the other threads like&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/message/479678"&gt;Re: ArcGIS Online Basemaps: Creating a Tile Cache for Offline Use&lt;/A&gt; &lt;/P&gt;&lt;P&gt;which also refers to those basemasps that might be available for offline use thru ArcGIS Online&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers" title="http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers"&gt;http://www.arcgis.com/home/search.html?q=for%20export&amp;amp;t=content&amp;amp;focus=layers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't downloaded any of these myself, so won't be of much help with details.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 22:27:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-add-mxd-as-layer-to-a-mapview/m-p/477401#M3205</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2015-10-08T22:27:23Z</dc:date>
    </item>
  </channel>
</rss>

