<?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 Scene Not Loading the Map Properly in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/scene-not-loading-the-map-properly/m-p/1207593#M11303</link>
    <description>&lt;P&gt;I asked a similar question once (&lt;A title="File Geodatabase Not Loading Properly on SceneView" href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/file-geodatabase-not-loading-properly-on-sceneview/m-p/1206762#M11300" target="_blank" rel="noopener"&gt;File Geodatabase Not Loading Properly on SceneView&lt;/A&gt;), but since I couldn't get a useful answer and there are now more details on the problem, I want to ask this again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Problem:&lt;/U&gt; &lt;/STRONG&gt;When I try to load a map, image, file geodatabase etc. using &lt;EM&gt;LocalServer&lt;/EM&gt; &amp;amp;&amp;nbsp;&lt;EM&gt;ArcGISMapImageLayer&lt;/EM&gt;&amp;nbsp;(the function I used is provided below) on a scene, only a small part of the map is shown (part of North America &amp;amp; Pacific Ocean) as seen in the image below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RuntimeHata.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49803iE725069D8B1D6527/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RuntimeHata.png" alt="RuntimeHata.png" /&gt;&lt;/span&gt;(This is a basemap image that&amp;nbsp; should cover whole earth surface)&lt;/P&gt;&lt;P&gt; The same code works without any problems for the MapView in the same app. The function I use for loading a single image can be seen below: (I use this function instead of a simpler way using &lt;EM&gt;Raster&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;RasterLayer&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;classes, because .ECW files and filegeotabases can only be loaded using Local Server as far as I know.&lt;/SPAN&gt;)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public async static void DisplayImg(Geomodel geomodel, string imgFolderPath, string imgFileName)
{
    LocalMapService localMapService = new LocalMapService(EMPTY_MPKX_PATH);
    RasterWorkSpace rasterWorkSpace = new RasterWorkSpace("Raster", imgFolderPath);
    RasterSublayerSource rasterSublayerSource = new RasterSublayerSource(rasterWorkSpace.Id, imgFileName);
    ArcGISMapImageSublayer arcGISMapImageSublayer = new ArcGISMapImageSublayer(0, rasterSublayerSource);
    localMapService.SetDynamicWorkspaces( new List&amp;lt;DynamicWorkspace&amp;gt;(){rasterWorkSpace} );
    await localMapService.StartAsync();

    ArcGISMapImageLayer arcGISMapImageLayer = new ArcGISMapImageLayer(localMapService.Url);
    await arcGISMapImageLayer.LoadAsync();
    ArcGISMapImageLayer.Sublayers.Add(arcGISMapImageSublayer);
    geomodel.OperationalLayers.Add(arcGISMapImageLayer);
}&lt;/LI-CODE&gt;&lt;P&gt;(The Function for loading file geodatabase is similar, using &lt;EM&gt;LocalMapService, ArcGISMapImageSublayer, ArcGISMapImageLayer&lt;/EM&gt; classes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Questions: &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong in this function (again, same function works fine for Map)?, Is there any other ways to load .ecw files (directly) or file geotabases?&lt;/P&gt;&lt;P&gt;What could this be related to? Previously, this problem did not occur on some computers, but now it seems it is problematic on all computers I tried.&lt;/P&gt;&lt;P&gt;Note: this happens on arcgisruntime and localserver 100.15 versions. 100.14 version could not load .ecw files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 08:24:34 GMT</pubDate>
    <dc:creator>AnthonyWalsh3</dc:creator>
    <dc:date>2022-08-30T08:24:34Z</dc:date>
    <item>
      <title>Scene Not Loading the Map Properly</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scene-not-loading-the-map-properly/m-p/1207593#M11303</link>
      <description>&lt;P&gt;I asked a similar question once (&lt;A title="File Geodatabase Not Loading Properly on SceneView" href="https://community.esri.com/t5/arcgis-runtime-sdk-for-net-questions/file-geodatabase-not-loading-properly-on-sceneview/m-p/1206762#M11300" target="_blank" rel="noopener"&gt;File Geodatabase Not Loading Properly on SceneView&lt;/A&gt;), but since I couldn't get a useful answer and there are now more details on the problem, I want to ask this again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Problem:&lt;/U&gt; &lt;/STRONG&gt;When I try to load a map, image, file geodatabase etc. using &lt;EM&gt;LocalServer&lt;/EM&gt; &amp;amp;&amp;nbsp;&lt;EM&gt;ArcGISMapImageLayer&lt;/EM&gt;&amp;nbsp;(the function I used is provided below) on a scene, only a small part of the map is shown (part of North America &amp;amp; Pacific Ocean) as seen in the image below:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RuntimeHata.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/49803iE725069D8B1D6527/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RuntimeHata.png" alt="RuntimeHata.png" /&gt;&lt;/span&gt;(This is a basemap image that&amp;nbsp; should cover whole earth surface)&lt;/P&gt;&lt;P&gt; The same code works without any problems for the MapView in the same app. The function I use for loading a single image can be seen below: (I use this function instead of a simpler way using &lt;EM&gt;Raster&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;RasterLayer&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;classes, because .ECW files and filegeotabases can only be loaded using Local Server as far as I know.&lt;/SPAN&gt;)&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public async static void DisplayImg(Geomodel geomodel, string imgFolderPath, string imgFileName)
{
    LocalMapService localMapService = new LocalMapService(EMPTY_MPKX_PATH);
    RasterWorkSpace rasterWorkSpace = new RasterWorkSpace("Raster", imgFolderPath);
    RasterSublayerSource rasterSublayerSource = new RasterSublayerSource(rasterWorkSpace.Id, imgFileName);
    ArcGISMapImageSublayer arcGISMapImageSublayer = new ArcGISMapImageSublayer(0, rasterSublayerSource);
    localMapService.SetDynamicWorkspaces( new List&amp;lt;DynamicWorkspace&amp;gt;(){rasterWorkSpace} );
    await localMapService.StartAsync();

    ArcGISMapImageLayer arcGISMapImageLayer = new ArcGISMapImageLayer(localMapService.Url);
    await arcGISMapImageLayer.LoadAsync();
    ArcGISMapImageLayer.Sublayers.Add(arcGISMapImageSublayer);
    geomodel.OperationalLayers.Add(arcGISMapImageLayer);
}&lt;/LI-CODE&gt;&lt;P&gt;(The Function for loading file geodatabase is similar, using &lt;EM&gt;LocalMapService, ArcGISMapImageSublayer, ArcGISMapImageLayer&lt;/EM&gt; classes)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Questions: &lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;Is there something wrong in this function (again, same function works fine for Map)?, Is there any other ways to load .ecw files (directly) or file geotabases?&lt;/P&gt;&lt;P&gt;What could this be related to? Previously, this problem did not occur on some computers, but now it seems it is problematic on all computers I tried.&lt;/P&gt;&lt;P&gt;Note: this happens on arcgisruntime and localserver 100.15 versions. 100.14 version could not load .ecw files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 08:24:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scene-not-loading-the-map-properly/m-p/1207593#M11303</guid>
      <dc:creator>AnthonyWalsh3</dc:creator>
      <dc:date>2022-08-30T08:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Scene Not Loading the Map Properly</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/scene-not-loading-the-map-properly/m-p/1217887#M11378</link>
      <description>&lt;P&gt;I finally figured out that the file (EMPTY_MPKX_PATH) passed as a parameter while initiating LocalMapServer has not proper extent. After creating a new mpkx file that covers whole world, I managed to load scene properly.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Oct 2022 08:08:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/scene-not-loading-the-map-properly/m-p/1217887#M11378</guid>
      <dc:creator>AnthonyWalsh3</dc:creator>
      <dc:date>2022-10-01T08:08:35Z</dc:date>
    </item>
  </channel>
</rss>

