<?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 detect Tiled Package conflict, compatibility issue ? in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441643#M1359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's also worth noting that there is a cost (sometimes quite significant) to reprojecting spatial data on the fly.&amp;nbsp; It will always take longer to render data which is not in the same spatial reference.&lt;BR /&gt;&lt;BR /&gt;I do however think that it's acceptable to have a web Mercator basemap and project data in a wgs84 spatial reference.&amp;nbsp; This is not a costly process.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with on this point, and reprojecting on the fly is working fine on my application with Shapefile and rasters for exemple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question was more about multiple Tiled Package which are composed of tiled/images :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;STRONG&gt;Is it possible to overlap 2 Tiled Packages which are in different Spatial Reference ?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try it, the 2nd Tiled Pacakge seems to be added (no exception/error), but it's not displayed on the map !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Apr 2013 08:48:14 GMT</pubDate>
    <dc:creator>JeremieJoalland1</dc:creator>
    <dc:date>2013-04-18T08:48:14Z</dc:date>
    <item>
      <title>How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441639#M1355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Take a disconnected application (no internet) with ArcGIS Runtime 10.1.1, where the user can load data by selecting source file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my application, user can select these file formats : .tif, .jp2, .shp, .mpk and .tpk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The rasters and shapefile are loaded through a blank mpk in WGS 84 coordinate system and will reproject correctly on another basemap if necessary,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - same thing with mpk which will reproject correctly if necessary,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - but &lt;/SPAN&gt;&lt;STRONG&gt;I have issues on TPK loading&lt;/STRONG&gt;&lt;SPAN&gt; (Tiled Packages) !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created some simple TPK from shapefile data to test the load of multiple tiled packages. the &lt;/SPAN&gt;&lt;STRONG&gt;TPK can differs from Map coordinates system and from Tiling Scheme&lt;/STRONG&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;&lt;BR /&gt;My Tiled Packages :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada.tpk : WGS_1984_Web_Mercator_Auxiliary_Sphere &amp;amp; ArcGIS Online tiling scheme&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada_cities.tpk : WGS_1984_Web_Mercator_Auxiliary_Sphere &amp;amp; ArcGIS Online tiling scheme&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada_myScheme.tpk : GCS_North_American_1983 &amp;amp; my tiling scheme (6 scales - xml created by "Generate Map Server Chache Tiling Scheme" tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada_myScheme_cities.tpk : GCS_North_American_1983 &amp;amp; my tiling scheme&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;(when creating TPK, it seems that ArcGIS Online tiling scheme change the coordinate system from "GCS_North_American_1983" to "WGS_1984_Web_Mercator_Auxiliary_Sphere")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="text-decoration:underline;"&gt;Here are my results when I load (using one button for each tpk) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada.tpk + Canada_cities.tpk : display is correct,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada_myScheme.tpk + Canada_myScheme_cities.tpk : display is correct,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Canada_myScheme.tpk (WGS84) + Canada_cities.tpk (NAD83) : &lt;/SPAN&gt;&lt;STRONG&gt;the 2nd TPK is not display at all&lt;/STRONG&gt;&lt;SPAN&gt;. I can understand that coordinates system is different, &lt;/SPAN&gt;&lt;STRONG&gt;but the 2nd tpk is initialized correctly&lt;/STRONG&gt;&lt;SPAN&gt; (from Listener). Also strange, the fullExtent was limited at Canada_myScheme.tpk extent and when I added the 2nd tpk, I could zoom out according to full extent of 2nd tpk, even if nothing is displayed. So it seems that JMap managed the 2 TPK, but can't display the tiles of 2nd tpk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;but how can I manage this uncompatibility ?... catch it in order to inform the user ? &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Layer status is "INITIALIZED", so I can't catch issue there... I also can't get the spatial reference from tiled package before adding it to the map... and once it's added, the getSpatialReference() is the same than map's spatial reference...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I attach my test application source code with zipped tpk files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2013 12:13:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441639#M1355</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-04-08T12:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441640#M1356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mbaird&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can detect the spatial reference before you add the tpk to the map.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //final ArcGISLocalTiledLayer tl = new ArcGISLocalTiledLayer("C:\\Data\\forum\\Canada.tpk");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //final ArcGISLocalTiledLayer tl = new ArcGISLocalTiledLayer("C:\\Data\\forum\\Canada.tpk");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final ArcGISLocalTiledLayer tl = new ArcGISLocalTiledLayer("C:\\Data\\forum\\Canada_myScheme.tpk");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tl.initializeAsync();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tl.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; public void layerInitializeComplete(LayerInitializeCompleteEvent e) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("init" + tl.getDefaultSpatialReference().getText());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //add it to the map if you are happy with the spatial reference&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.getLayers().add(tl);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; });&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does this help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 15:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441640#M1356</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-17T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441641#M1357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's also worth noting that there is a cost (sometimes quite significant) to reprojecting spatial data on the fly.&amp;nbsp; It will always take longer to render data which is not in the same spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do however think that it's acceptable to have a web Mercator basemap and project data in a wgs84 spatial reference.&amp;nbsp; This is not a costly process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Apr 2013 19:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441641#M1357</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2013-04-17T19:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441642#M1358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: jjoalland13&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; You can detect the spatial reference before you add the tpk to the map.&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt; final ArcGISLocalTiledLayer tl = new ArcGISLocalTiledLayer("C:\\Data\\forum\\Canada_myScheme.tpk");&amp;nbsp; &lt;BR /&gt; tl.initializeAsync();&amp;nbsp; &lt;BR /&gt; tl.addLayerInitializeCompleteListener(new LayerInitializeCompleteListener() {&amp;nbsp; &lt;BR /&gt; @Override&amp;nbsp; &lt;BR /&gt; public void layerInitializeComplete(LayerInitializeCompleteEvent e) {&amp;nbsp; &lt;BR /&gt; System.out.println("init" + tl.getDefaultSpatialReference().getText());&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; //add it to the map if you are happy with the spatial reference&amp;nbsp; &lt;BR /&gt; map.getLayers().add(tl);&amp;nbsp; &lt;BR /&gt; }&amp;nbsp; &lt;BR /&gt; });&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try your solution with asynchronous initialize, I still can't get the Spatial Reference of the TPK before adding it to the map... tl.getDefaultSpatialReference is always Null !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for exemple, my following code (&lt;/SPAN&gt;&lt;STRONG&gt;using tl.initializeAsync();&lt;/STRONG&gt;&lt;SPAN&gt; ) :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;@Override
public void layerInitializeComplete(LayerInitializeCompleteEvent e) {
 count++;
 ArcGISLocalTiledLayer layer = (ArcGISLocalTiledLayer) e.getLayer();
 if (layer.getStatus() == LayerStatus.INITIALIZED) {
&amp;nbsp; System.out.println(String.format(count + "-LayerInitializeCompleteEvent- Layer '%s' is initialized !", layer.getName()));
&amp;nbsp; 
&amp;nbsp; if (&lt;STRONG&gt;layer.getSpatialReference() != null&lt;/STRONG&gt;) {
&amp;nbsp;&amp;nbsp; System.out.println(count + "&amp;nbsp;&amp;nbsp; layer spatial ref : " + layer.getSpatialReference().getText());
&amp;nbsp; }
&amp;nbsp; else {
&amp;nbsp;&amp;nbsp; System.out.println(count + "&amp;nbsp;&amp;nbsp; layer spatial ref IS NULL !!!");
&amp;nbsp; }
&amp;nbsp; 
&amp;nbsp; //add it to the map if you are happy with the spatial reference
&amp;nbsp; map.getLayers().add(layer);
 } else {
&amp;nbsp; System.out.println(String.format(count + "-LayerInitializeCompleteEvent- ERROR: Layer '%s' has status : '%s'", layer.getName(), layer.getStatus()));&amp;nbsp;&amp;nbsp; }
}&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;produce following output result when I click load 2 TPK from same spatial ref :&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Java version : 1.7.0_07 (Oracle Corporation) x86
Rendering engine : DirectX
1-LayerInitializeCompleteEvent- Layer 'C:\temp\Canada.tpk' is initialized !
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;1&amp;nbsp;&amp;nbsp; layer spatial ref IS NULL !!!&lt;/SPAN&gt;
-MapEventListenerAdapter- Map is ready !
2-LayerInitializeCompleteEvent- Layer 'C:\temp\Canada_cities.tpk' is initialized !
&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;2&amp;nbsp;&amp;nbsp; layer spatial ref IS NULL !!!&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 19:45:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441642#M1358</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-11T19:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441643#M1359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's also worth noting that there is a cost (sometimes quite significant) to reprojecting spatial data on the fly.&amp;nbsp; It will always take longer to render data which is not in the same spatial reference.&lt;BR /&gt;&lt;BR /&gt;I do however think that it's acceptable to have a web Mercator basemap and project data in a wgs84 spatial reference.&amp;nbsp; This is not a costly process.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I agree with on this point, and reprojecting on the fly is working fine on my application with Shapefile and rasters for exemple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question was more about multiple Tiled Package which are composed of tiled/images :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; - &lt;/SPAN&gt;&lt;STRONG&gt;Is it possible to overlap 2 Tiled Packages which are in different Spatial Reference ?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try it, the 2nd Tiled Pacakge seems to be added (no exception/error), but it's not displayed on the map !&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 08:48:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441643#M1359</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-04-18T08:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441644#M1360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: eacheson&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;STRONG&gt;Is it possible to overlap 2 Tiled Packages which are in different Spatial Reference ?&lt;/STRONG&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's not possible, no. You can't stack tiled layers with a difference spatial reference.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first layer added to the map will define the map's spatial reference. Subsequent layers, except for tiled layers, will be re-projected to this spatial reference. Tiled layers won't be displayed if the tiled layer's spatial reference doesn't match the map's spatial reference (and hence the first layer's spatial reference).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;~elise&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Apr 2013 09:35:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441644#M1360</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-18T09:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441645#M1361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's not possible, no. You can't stack tiled layers with a difference spatial reference.&lt;BR /&gt;&lt;BR /&gt;The first layer added to the map will define the map's spatial reference. Subsequent layers, except for tiled layers, will be re-projected to this spatial reference. Tiled layers won't be displayed if the tiled layer's spatial reference doesn't match the map's spatial reference (and hence the first layer's spatial reference).&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my last issue is now to&lt;/SPAN&gt;&lt;STRONG&gt; find a way to catch this difference&lt;/STRONG&gt;&lt;SPAN&gt;... Once the user has selected a TPK file to load it, &lt;/SPAN&gt;&lt;STRONG&gt;how can I check its spatial reference is not compatible with the current map ?&lt;BR /&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;for now, there is no error, no exception... ArcGIS Runtime behave like it can manage this new TPK (with different spatial reference) but without displaying it !! and this it not acceptable for us... we need to be able to catch the issue and inform the user with proper message.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 06:38:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441645#M1361</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-04-24T06:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441646#M1362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Original User: mbaird&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code you posted earlier showed you were using the getSpatialReference method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I suggusted trying the getDefaultSpatialReference method.&amp;nbsp; Is this not working for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 12:06:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441646#M1362</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-04-24T12:06:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to detect Tiled Package conflict, compatibility issue ?</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441647#M1363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The code you posted earlier showed you were using the getSpatialReference method.&lt;BR /&gt;I suggusted trying the getDefaultSpatialReference method.&amp;nbsp; Is this not working for you?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry Mark, it's my mistake... I read to fast and was using getSpatialReference instead of &lt;/SPAN&gt;&lt;STRONG&gt;getDefaultSpatialReference &lt;/STRONG&gt;&lt;SPAN&gt;as suggested.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so it's working fine now ! thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2013 06:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/how-to-detect-tiled-package-conflict-compatibility/m-p/441647#M1363</guid>
      <dc:creator>JeremieJoalland1</dc:creator>
      <dc:date>2013-04-25T06:20:44Z</dc:date>
    </item>
  </channel>
</rss>

