<?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: Add Raster With no Basemap in Java Maps SDK Questions</title>
    <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84412#M236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's possible that the map is not viewing the area of your raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the data in the sample can you see the it if you do the following after adding the layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setExtent(new Envelope(-19856505, -8827900, 18574809, 16806021));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Mar 2014 15:39:06 GMT</pubDate>
    <dc:creator>MarkBaird</dc:creator>
    <dc:date>2014-03-27T15:39:06Z</dc:date>
    <item>
      <title>Add Raster With no Basemap</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84411#M235</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 have been looking at the 'Add Raster' sample and would like to be able to manually add a raster dataset in isolation with no other layers on the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try doing this the map just displays white. Is this something that should be supported?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All I have done to test this out is take the LocalRasterApp example and removed the lines where the basemap layer is added.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;//ArcGISTiledMapServiceLayer tiledLayer = new ArcGISTiledMapServiceLayer( "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" rel="nofollow" target="_blank"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer&lt;/A&gt;&lt;SPAN&gt;"); &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; //jMap.getLayers().add(tiledLayer); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I do this when I add a raster dataset it shows the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 10:52:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84411#M235</guid>
      <dc:creator>MichaelKnight</dc:creator>
      <dc:date>2014-03-27T10:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster With no Basemap</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84412#M236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's possible that the map is not viewing the area of your raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using the data in the sample can you see the it if you do the following after adding the layer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;map.setExtent(new Envelope(-19856505, -8827900, 18574809, 16806021));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 15:39:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84412#M236</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2014-03-27T15:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster With no Basemap</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84413#M237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have tried this and it does not make a difference. One interesting observation is that if I try adding the data in reverse order (raster then tiled basemap) I get the following error&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.RuntimeException: Tiled layer has different spatial reference from the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.map.JMap$b.layerInitializeComplete(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.map.Layer.fireLayerCreateCompleteEvent(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.map.ArcGISTiledMapServiceLayer$1.run(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.FutureTask.run(FutureTask.java:138)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.Thread.run(Thread.java:662)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However I am still only looking to add a raster in isolation but wondered if this would help isolate the issue. I am using the usa_raster for my testing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Mar 2014 21:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84413#M237</guid>
      <dc:creator>MichaelKnight</dc:creator>
      <dc:date>2014-03-27T21:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster With no Basemap</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84414#M238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What your error message shows is that the local server is reprojecting your image from a different spatial reference when you open the tiled layer first.&amp;nbsp; A tiled layer will not reproject hence the error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway it's worth starting by saying that your workflow of opening up the raster image on it's own is supported and I can get it to work against 10.2 so we just need to look at what is happening.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In your LayerInitializedCompleteListener, what is the spatial reference of your map?&amp;nbsp; My map is coming out as 4326 so my set Extent method is working fine.&amp;nbsp; I'm however wondering if your blank mpk has been changed so the SR is WGS84.&amp;nbsp; In which case you need to be setting the extent of your map using WGS84 coordinates (lat/long)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me know how you get on.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Mar 2014 15:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84414#M238</guid>
      <dc:creator>MarkBaird</dc:creator>
      <dc:date>2014-03-28T15:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Add Raster With no Basemap</title>
      <link>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84415#M239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I have tried this and it does not make a difference.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; I'd set the &lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/java/api-reference/com/esri/map/JMap.html#setFullExtent(com.esri.core.geometry.Envelope)"&gt;full extent&lt;/A&gt;&lt;SPAN&gt; of the map as that of the world:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]32618[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This will ensure you're able to zoom/pan to where the raster may be projected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Mar 2014 13:50:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/java-maps-sdk-questions/add-raster-with-no-basemap/m-p/84415#M239</guid>
      <dc:creator>CarlosColón-Maldonado</dc:creator>
      <dc:date>2014-03-29T13:50:04Z</dc:date>
    </item>
  </channel>
</rss>

