<?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 Not able to view ArcGIS non shared Scene Layer with BuildingSceneLayer even though I have signed in and the file is from my Portal in .NET and the Esri JavaScript API Questions</title>
    <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/not-able-to-view-arcgis-non-shared-scene-layer/m-p/864082#M76</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I am viewing BuildingSceneLayer using ArcGIS Javascript API.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I want to display a SceneLayer which is not shared as public in the ArcGIS portal.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When I try viewing it I get&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://i.stack.imgur.com/Mb09U.png" rel="nofollow noreferrer noopener" style="color: #005999; border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;Sceenshot&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When I view in Codepen&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://codepen.io/arnofiva/pen/c410babb5384945a12b1d8206ebe27ce?editors=1010" rel="nofollow noreferrer noopener" style="color: #005999; border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;https://codepen.io/arnofiva/pen/c410babb5384945a12b1d8206ebe27ce?editors=1010&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
 "esri/Map",
 "esri/views/SceneView",
 "esri/layers/BuildingSceneLayer"
], function(Map, SceneView, BuildingSceneLayer) {
 // Create Map
 var map = new Map({
 basemap: "terrain",
 ground: "world-elevation"
 });

// Create the SceneView
 var view = new SceneView({
 container: "viewDiv",
 map: map,
 camera: {
 position: [-74.0338, 40.6913, 707],
 tilt: 81,
 heading: 50
 }
 });

// Create SceneLayer and add to the map
 var sceneLayer = new BuildingSceneLayer({
 portalItem: {
 id: "e7bf9f676ed64937bff9f44c84fdae2b"
 },
 popupEnabled: false
 });
 map.add(sceneLayer);

sceneLayer.when().then(function() {
 view.goTo(sceneLayer.fullExtent);
 });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I get a popup for logging in. How do I enable that in my code?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 17:00:52 GMT</pubDate>
    <dc:creator>GeorgyFelix</dc:creator>
    <dc:date>2021-12-12T17:00:52Z</dc:date>
    <item>
      <title>Not able to view ArcGIS non shared Scene Layer with BuildingSceneLayer even though I have signed in and the file is from my Portal</title>
      <link>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/not-able-to-view-arcgis-non-shared-scene-layer/m-p/864082#M76</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I am viewing BuildingSceneLayer using ArcGIS Javascript API.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;I want to display a SceneLayer which is not shared as public in the ArcGIS portal.&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When I try viewing it I get&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://i.stack.imgur.com/Mb09U.png" rel="nofollow noreferrer noopener" style="color: #005999; border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;Sceenshot&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;When I view in Codepen&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;A href="https://codepen.io/arnofiva/pen/c410babb5384945a12b1d8206ebe27ce?editors=1010" rel="nofollow noreferrer noopener" style="color: #005999; border: 0px; font-weight: inherit; text-decoration: underline;" target="_blank"&gt;https://codepen.io/arnofiva/pen/c410babb5384945a12b1d8206ebe27ce?editors=1010&lt;/A&gt;&lt;/P&gt;&lt;P style="color: #242729; background-color: #ffffff; border: 0px; margin: 0px 0px 1em;"&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;require([
 "esri/Map",
 "esri/views/SceneView",
 "esri/layers/BuildingSceneLayer"
], function(Map, SceneView, BuildingSceneLayer) {
 // Create Map
 var map = new Map({
 basemap: "terrain",
 ground: "world-elevation"
 });

// Create the SceneView
 var view = new SceneView({
 container: "viewDiv",
 map: map,
 camera: {
 position: [-74.0338, 40.6913, 707],
 tilt: 81,
 heading: 50
 }
 });

// Create SceneLayer and add to the map
 var sceneLayer = new BuildingSceneLayer({
 portalItem: {
 id: "e7bf9f676ed64937bff9f44c84fdae2b"
 },
 popupEnabled: false
 });
 map.add(sceneLayer);

sceneLayer.when().then(function() {
 view.goTo(sceneLayer.fullExtent);
 });
});&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #242729; background-color: #ffffff;"&gt;I get a popup for logging in. How do I enable that in my code?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 17:00:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-and-the-esri-javascript-api-questions/not-able-to-view-arcgis-non-shared-scene-layer/m-p/864082#M76</guid>
      <dc:creator>GeorgyFelix</dc:creator>
      <dc:date>2021-12-12T17:00:52Z</dc:date>
    </item>
  </channel>
</rss>

