<?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 load TPK as a Basemap and cannot view non-overlapping RasterLayer in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/load-tpk-as-a-basemap-and-cannot-view-non/m-p/1071165#M10191</link>
    <description>&lt;P&gt;uinsg Esri.ArcGISRuntime.UWP v100.10.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I:&lt;/P&gt;&lt;P&gt;1 load a TPK into a Basemap and use that Basemap in my Map that is bound to my Esri:MapView&lt;/P&gt;&lt;P&gt;2 load a RasterLayer and add to my Map.OperationalLayers&lt;/P&gt;&lt;P&gt;3 Set Viewpoint to be Full Extent of my Raster Layer.&lt;/P&gt;&lt;P&gt;IF my BaseMap and RasterLayer &lt;STRONG&gt;do not overlap&lt;/STRONG&gt; with eachother, i &lt;STRONG&gt;cannot&lt;/STRONG&gt; view my RasterLayer.&lt;/P&gt;&lt;P&gt;IF they &lt;STRONG&gt;do overlap&lt;/STRONG&gt;, then i &lt;STRONG&gt;can&lt;/STRONG&gt;&amp;nbsp;view my RasterLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way enable viewing of a Raster Layer that does not overlap with the current basemap?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code snippet:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;TileCache cache = new TileCache(localFile.Path);
ArcGISTiledLayer layer = new ArcGISTiledLayer(cache);
await layer.LoadAsync();
Basemap basemap = new Basemap(layer);
basemap.Name = "local";
ViewModel.Map = new Map(basemap);
//where ViewModel.Map is Binded to my esri:MapView

//load raster and set viewpoint to view raster
Raster raster = new Raster(localFile.Path);
await raster.LoadAsync();
ViewModel.Map.OperationalLayers.Add(rasterLayer);
Viewpoint newViewPoint = new Viewpoint(rasterLayer.FullExtent);
await MyMapView.SetViewpointAsync(newViewPoint);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Jun 2021 19:33:48 GMT</pubDate>
    <dc:creator>justinfernandes</dc:creator>
    <dc:date>2021-06-22T19:33:48Z</dc:date>
    <item>
      <title>load TPK as a Basemap and cannot view non-overlapping RasterLayer</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/load-tpk-as-a-basemap-and-cannot-view-non/m-p/1071165#M10191</link>
      <description>&lt;P&gt;uinsg Esri.ArcGISRuntime.UWP v100.10.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I:&lt;/P&gt;&lt;P&gt;1 load a TPK into a Basemap and use that Basemap in my Map that is bound to my Esri:MapView&lt;/P&gt;&lt;P&gt;2 load a RasterLayer and add to my Map.OperationalLayers&lt;/P&gt;&lt;P&gt;3 Set Viewpoint to be Full Extent of my Raster Layer.&lt;/P&gt;&lt;P&gt;IF my BaseMap and RasterLayer &lt;STRONG&gt;do not overlap&lt;/STRONG&gt; with eachother, i &lt;STRONG&gt;cannot&lt;/STRONG&gt; view my RasterLayer.&lt;/P&gt;&lt;P&gt;IF they &lt;STRONG&gt;do overlap&lt;/STRONG&gt;, then i &lt;STRONG&gt;can&lt;/STRONG&gt;&amp;nbsp;view my RasterLayer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way enable viewing of a Raster Layer that does not overlap with the current basemap?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;code snippet:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;TileCache cache = new TileCache(localFile.Path);
ArcGISTiledLayer layer = new ArcGISTiledLayer(cache);
await layer.LoadAsync();
Basemap basemap = new Basemap(layer);
basemap.Name = "local";
ViewModel.Map = new Map(basemap);
//where ViewModel.Map is Binded to my esri:MapView

//load raster and set viewpoint to view raster
Raster raster = new Raster(localFile.Path);
await raster.LoadAsync();
ViewModel.Map.OperationalLayers.Add(rasterLayer);
Viewpoint newViewPoint = new Viewpoint(rasterLayer.FullExtent);
await MyMapView.SetViewpointAsync(newViewPoint);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Jun 2021 19:33:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/load-tpk-as-a-basemap-and-cannot-view-non/m-p/1071165#M10191</guid>
      <dc:creator>justinfernandes</dc:creator>
      <dc:date>2021-06-22T19:33:48Z</dc:date>
    </item>
  </channel>
</rss>

