<?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 Base map is not retaining feature layers in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/base-map-is-not-retaining-feature-layers/m-p/677428#M4715</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have few feature layers rendered on the map, and I have an option to change the base map. When I switch the base map, feature layers get cleared.&lt;/P&gt;&lt;P&gt;Same thing works well with graphics. I understand map behaves differently for graphics overlays and layers.&lt;/P&gt;&lt;P&gt;But, how do I achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried one solution, where in I keep the feature layer in one array and do this when I switch base map,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mMapView.getMap().getOperationalLayers().add(geodatabaseFeatureLayer);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but sdk throws a runtime execption "object already owned" for this line. I have map view already declared&amp;nbsp;globally&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Oct 2019 20:22:21 GMT</pubDate>
    <dc:creator>DevendraKhatri</dc:creator>
    <dc:date>2019-10-15T20:22:21Z</dc:date>
    <item>
      <title>Base map is not retaining feature layers</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/base-map-is-not-retaining-feature-layers/m-p/677428#M4715</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have few feature layers rendered on the map, and I have an option to change the base map. When I switch the base map, feature layers get cleared.&lt;/P&gt;&lt;P&gt;Same thing works well with graphics. I understand map behaves differently for graphics overlays and layers.&lt;/P&gt;&lt;P&gt;But, how do I achieve this ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried one solution, where in I keep the feature layer in one array and do this when I switch base map,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mMapView.getMap().getOperationalLayers().add(geodatabaseFeatureLayer);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but sdk throws a runtime execption "object already owned" for this line. I have map view already declared&amp;nbsp;globally&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Oct 2019 20:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/base-map-is-not-retaining-feature-layers/m-p/677428#M4715</guid>
      <dc:creator>DevendraKhatri</dc:creator>
      <dc:date>2019-10-15T20:22:21Z</dc:date>
    </item>
  </channel>
</rss>

