<?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 adding maplayer with different spatial reference from basemaplayer in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/adding-maplayer-with-different-spatial-reference/m-p/641114#M4408</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to handle different map layers with different spatial references. When I add a maplayer with different spacial reference (102100 bing map layer) to my mapview I get the error LAYER_LOADING_FAILED with error code (-4010 = spacial ref related error) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm thinking its because base layer spatial ref is different than 102100. How do I fix this ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read in silverlight forum that you can removeAll layers in mapview &amp;amp; setExtent to null will make it possible to add a maplayer with a difference&amp;nbsp; spatial ref. but its not seem to work in android. What should I do ? Any help is appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mapView.removeAll();
mapView.setExtent(null);
mapView.addLayer(new BingMapsLayer("MY_API_KEY", BingMapsLayer.MapStyle.AERIAL_WITH_LABELS,true));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will give error for OnStatusChangedListener() &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Mar 2013 15:45:41 GMT</pubDate>
    <dc:creator>marxonline</dc:creator>
    <dc:date>2013-03-18T15:45:41Z</dc:date>
    <item>
      <title>adding maplayer with different spatial reference from basemaplayer</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/adding-maplayer-with-different-spatial-reference/m-p/641114#M4408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to handle different map layers with different spatial references. When I add a maplayer with different spacial reference (102100 bing map layer) to my mapview I get the error LAYER_LOADING_FAILED with error code (-4010 = spacial ref related error) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I'm thinking its because base layer spatial ref is different than 102100. How do I fix this ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read in silverlight forum that you can removeAll layers in mapview &amp;amp; setExtent to null will make it possible to add a maplayer with a difference&amp;nbsp; spatial ref. but its not seem to work in android. What should I do ? Any help is appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;mapView.removeAll();
mapView.setExtent(null);
mapView.addLayer(new BingMapsLayer("MY_API_KEY", BingMapsLayer.MapStyle.AERIAL_WITH_LABELS,true));
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;will give error for OnStatusChangedListener() &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:45:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/adding-maplayer-with-different-spatial-reference/m-p/641114#M4408</guid>
      <dc:creator>marxonline</dc:creator>
      <dc:date>2013-03-18T15:45:41Z</dc:date>
    </item>
  </channel>
</rss>

