-
Notifications
You must be signed in to change notification settings - Fork 42
Display local scene #444
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v.next
Are you sure you want to change the base?
Display local scene #444
Conversation
shubham7109
left a comment
There was a problem hiding this 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.
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. |
There was a problem hiding this comment.
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:
| 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()), |
There was a problem hiding this comment.
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:
| center = Point(19455026.8116, -5054995.7415, SpatialReference.webMercator()), | |
| center = Point( | |
| x = 19455026.8116, | |
| y = -5054995.7415, | |
| spatialReference = SpatialReference.webMercator() | |
| ), |
| locationPoint = Point( | ||
| 19455578.6821, | ||
| -5056336.2227, | ||
| 1699.3366, | ||
| SpatialReference.webMercator()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above:
| 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), |
There was a problem hiding this comment.
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 :)
| .weight(1f), | |
| , |
Description
PR to add a new Kotlin sample "Display Local Scene" in
Scenescategory.Links and Data
What To Review
README.mdandREADME.metadata.jsonfilesHow to Test
Run the sample on the sample viewer or the repo.
Screenshots