Skip to content

Conversation

@colinanderson
Copy link
Collaborator

@colinanderson colinanderson commented Nov 25, 2025

Description

PR to add a new Kotlin sample "Display Local Scene" in Scenes category.

Links and Data

What To Review

  • Review the code to make sure it is easy to follow like other samples on Android
  • README.md and README.metadata.json files

How to Test

Run the sample on the sample viewer or the repo.

Screenshots

image

@colinanderson colinanderson marked this pull request as ready for review November 26, 2025 12:55
Copy link
Collaborator

@shubham7109 shubham7109 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@colinanderson Nice work, sample app seems to work on physical device but not an emulator Pixel v36.

Image

I added few minor clarity feedback. Feel free to update the arcgisMapsKotlinVersion within the libs.versions.toml to reflect any starting build in which LocalSceneView is available using toolkit.


## How it works

1. Create a local scene object with the `ArcGISScene.ArcGISScene(arcGISTopographic, SceneViewingMode.local)` constructor.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a typo:

Suggested change
1. Create a local scene object with the `ArcGISScene.ArcGISScene(arcGISTopographic, SceneViewingMode.local)` constructor.
1. Create a local scene object with the `ArcGISScene(arcGISTopographic, SceneViewingMode.local)` constructor.

baseSurface.elevationSources.add(elevationSource)

initialViewpoint = Viewpoint(
center = Point(19455026.8116, -5054995.7415, SpatialReference.webMercator()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick suggestion to use named args to readability:

Suggested change
center = Point(19455026.8116, -5054995.7415, SpatialReference.webMercator()),
center = Point(
x = 19455026.8116,
y = -5054995.7415,
spatialReference = SpatialReference.webMercator()
),

Comment on lines +72 to +76
locationPoint = Point(
19455578.6821,
-5056336.2227,
1699.3366,
SpatialReference.webMercator()),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above:

Suggested change
locationPoint = Point(
19455578.6821,
-5056336.2227,
1699.3366,
SpatialReference.webMercator()),
locationPoint = Point(
x = 19455578.6821,
y = -5056336.2227,
z = 1699.3366,
spatialReference = SpatialReference.webMercator()
),

LocalSceneView(
modifier = Modifier
.fillMaxSize()
.weight(1f),
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not needed for the Column :)

Suggested change
.weight(1f),
,

@shubham7109 shubham7109 added the New sample New Kotlin sample using ArcGIS Maps SDK label Nov 27, 2025
@shubham7109 shubham7109 changed the title Colinanderson/local scene view Display local scene Nov 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

New sample New Kotlin sample using ArcGIS Maps SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants