Skip to content

Commit 5f56d4d

Browse files
committed
Break layer addition to 2 steps.
1 parent 92d11e5 commit 5f56d4d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Shared/Samples/Add 3D tiles layer/Add3DTilesLayerView.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,11 @@ struct Add3DTilesLayerView: View {
3737
// Sets the surface to the scene's base surface.
3838
scene.baseSurface = surface
3939

40-
// Adds a OGC 3D tiles layer from a URL to the scene's operational layers.
41-
scene.addOperationalLayer(OGC3DTilesLayer(url: .stuttgart3DTiles))
40+
// Creates an OGC 3D tiles layer from a 3D tiles service URL.
41+
let ogc3DTileslayer = OGC3DTilesLayer(url: .stuttgart3DTiles)
42+
43+
// Adds the layer to the scene's operational layers.
44+
scene.addOperationalLayer(ogc3DTileslayer)
4245
return scene
4346
}()
4447

0 commit comments

Comments
 (0)