Skip to content

Commit 753a74d

Browse files
authored
Query Dynamic Entity warning fix (#1696)
1 parent 4f18244 commit 753a74d

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

src/MAUI/Maui.Samples/Samples/Layers/ApplyRenderersToSceneLayer/ApplyRenderersToSceneLayer.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ private async Task Initialize()
5050
// Set the scene on the SceneView to visualize the 3D tiles layer.
5151
MySceneView.Scene = myScene;
5252

53+
// Load the scene layer before setting up the view.
54+
await _sceneLayer.LoadAsync();
55+
5356
// Create a camera with an initial viewpoint.
5457
// Camera constructor parameters: latitude, longitude, altitude, heading, pitch, and roll.
5558
var sceneCamera = new Camera(60.1646, 24.9600, 360, 48.35, 57.84, 0.0);

src/WPF/WPF.Viewer/Samples/Layers/ApplyRenderersToSceneLayer/ApplyRenderersToSceneLayer.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ private async Task Initialize()
5353
// Set the scene on the SceneView to visualize the 3D tiles layer.
5454
MySceneView.Scene = myScene;
5555

56+
// Load the scene layer before setting up the view.
57+
await _sceneLayer.LoadAsync();
58+
5659
// Create a camera with an initial viewpoint.
5760
// Camera constructor parameters: latitude, longitude, altitude, heading, pitch, and roll.
5861
var sceneCamera = new Camera(60.1646, 24.9600, 360, 48.35, 57.84, 0.0);

src/WinUI/ArcGIS.WinUI.Viewer/Samples/Layers/ApplyRenderersToSceneLayer/ApplyRenderersToSceneLayer.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ private async Task Initialize()
5353
// Set the scene on the SceneView to visualize the 3D tiles layer.
5454
MySceneView.Scene = myScene;
5555

56+
// Load the scene layer before setting up the view.
57+
await _sceneLayer.LoadAsync();
58+
5659
// Create a camera with an initial viewpoint.
5760
// Camera constructor parameters: latitude, longitude, altitude, heading, pitch, and roll.
5861
var sceneCamera = new Camera(60.1646, 24.9600, 360, 48.35, 57.84, 0.0);

0 commit comments

Comments
 (0)