<?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: map.addLayers(); in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696588#M4855</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad.&amp;nbsp; I was referring to this page of the API Doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html"&gt;http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;&lt;SPAN&gt;here is a method "initLayer();" but It's protected.&amp;nbsp; I missed that.&amp;nbsp; You are correct, initializing the layer at creation via parameter is the better way to do it.&amp;nbsp; Sorry about the confusion, but I'm glad you figured it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 May 2013 11:28:54 GMT</pubDate>
    <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
    <dc:date>2013-05-10T11:28:54Z</dc:date>
    <item>
      <title>map.addLayers();</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696585#M4852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when i'm adding arcgislocaltiledlayer what should i do to refresh the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My map won't refresh itself, is there any certain procedure i should be following to update the map?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2013 07:37:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696585#M4852</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2013-05-07T07:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: map.addLayers();</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696586#M4853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You might need to call initLayer() in order to initialize the layer.&amp;nbsp; This should refresh the map.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 11:43:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696586#M4853</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2013-05-09T11:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: map.addLayers();</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696587#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Andrew &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my arcgislocaltiledlayer didnt have the method initLayer but you can pass it as a parameter when creating it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks you've solved it!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matej&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;p.s. &lt;/SPAN&gt;&lt;A href="http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/TiledLayer.html"&gt;http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/TiledLayer.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;it describes some abstract method initLayer&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 05:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696587#M4854</guid>
      <dc:creator>MatejSkerjanc</dc:creator>
      <dc:date>2013-05-10T05:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: map.addLayers();</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696588#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My bad.&amp;nbsp; I was referring to this page of the API Doc:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html"&gt;http://developers.arcgis.com/en/android/api-reference/reference/com/esri/android/map/ags/ArcGISLocalTiledLayer.html&lt;BR /&gt;&lt;BR /&gt;T&lt;/A&gt;&lt;SPAN&gt;here is a method "initLayer();" but It's protected.&amp;nbsp; I missed that.&amp;nbsp; You are correct, initializing the layer at creation via parameter is the better way to do it.&amp;nbsp; Sorry about the confusion, but I'm glad you figured it out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 May 2013 11:28:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696588#M4855</guid>
      <dc:creator>deleted-user-ATjHIWsdQYmT</dc:creator>
      <dc:date>2013-05-10T11:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: map.addLayers();</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696589#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;one question about this solution. When you talk about the init parameter when you create the layer, I guess you're talking about doing something like that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;new ArcGISLocalTiledLayer("file://"+path, true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then adding this new Layer to the Map, should work and the map should be refreshed, right? but in my case this is not working neither and the map is not showing anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Myabe I'm not doing the creation and the adding in the right place, could you point me when yo do that in order to work? (I'm having some problems when I add the layers outside the OnCreate method... maybe that's the problem here too?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 07:59:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/map-addlayers/m-p/696589#M4856</guid>
      <dc:creator>JessicaSena</dc:creator>
      <dc:date>2013-05-13T07:59:55Z</dc:date>
    </item>
  </channel>
</rss>

