-
Notifications
You must be signed in to change notification settings - Fork 39
Add dynamic entity layer #139
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
Conversation
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.
Nice sample @prupani-7!
samples-lib/src/main/java/com/esri/arcgismaps/sample/sampleslib/components/BottomSheet.kt
Outdated
Show resolved
Hide resolved
...y-layer/src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...y-layer/src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/screens/MainScreen.kt
Outdated
Show resolved
Hide resolved
...rc/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/components/BottomAppContent.kt
Outdated
Show resolved
Hide resolved
samples-lib/src/main/java/com/esri/arcgismaps/sample/sampleslib/components/ViewshedSlider.kt
Outdated
Show resolved
Hide resolved
.../src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/components/ComposeMapView.kt
Outdated
Show resolved
Hide resolved
.../src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/components/ComposeMapView.kt
Outdated
Show resolved
Hide resolved
...er/src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/components/MapViewModel.kt
Outdated
Show resolved
Hide resolved
...er/src/main/java/com/esri/arcgismaps/sample/adddynamicentitylayer/components/MapViewModel.kt
Outdated
Show resolved
Hide resolved
Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/screens/MainScreen.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/screens/MainScreen.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/components/BottomAppContent.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/components/BottomAppContent.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/components/BottomAppContent.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/components/MapViewModel.kt Co-authored-by: Shubham Sharma <[email protected]>
…ple/adddynamicentitylayer/components/MapViewModel.kt Co-authored-by: Shubham Sharma <[email protected]>
@shubham7109 thanks for the detailed review. Applied you suggestions and added couple comments with my thoughts. Please re-review and let me know if the changes look good to be approved? |
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.
Just one final change. Looks good to approve @prupani-7!
observationsPerTrack: Float, | ||
onDismiss: () -> Unit = { } | ||
) { | ||
var sliderValue by remember { mutableStateOf(observationsPerTrack) } |
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.
You could remove this as well, and use observationsPerTrack
to set the slider value.
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.
missed removing this earlier. Thanks!
text = sliderValue.toInt().toString() | ||
) | ||
} | ||
Slider( | ||
value = sliderValue, | ||
onValueChange = { | ||
sliderValue = it | ||
onObservationsChanged(sliderValue) |
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.
And you could pass in the observationsPerTrack
to the slider and Compose would handle observation changes
text = sliderValue.toInt().toString() | |
) | |
} | |
Slider( | |
value = sliderValue, | |
onValueChange = { | |
sliderValue = it | |
onObservationsChanged(sliderValue) | |
text = observationsPerTrack.roundToInt().toString() | |
) | |
} | |
Slider( | |
value = observationsPerTrack, | |
onValueChange = { | |
onObservationsChanged(it) |
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.
Couple of doc related issues found
Overall a nice sample to showcase dynamic entities, UI looks nice and clean
add-dynamic-entity-layer/README.md
Outdated
|
||
## Use case | ||
|
||
A stream service is a type of service provided by ArcGIS Velocity and GeoEvent Server that allows clients to receive a stream of data observations via a web socket. ArcGIS Maps SDK for .NET allows you to connect to a stream service and manage the information as dynamic entities and display them in a dynamic entity layer. Displaying information from feeds such as a stream service is important in applications like dashboards where users need to visualize and track updates of real-world objects in real-time. |
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.
A stream service is a type of service provided by ArcGIS Velocity and GeoEvent Server that allows clients to receive a stream of data observations via a web socket. ArcGIS Maps SDK for .NET allows you to connect to a stream service and manage the information as dynamic entities and display them in a dynamic entity layer. Displaying information from feeds such as a stream service is important in applications like dashboards where users need to visualize and track updates of real-world objects in real-time. | |
A stream service is a type of service provided by ArcGIS Velocity and GeoEvent Server that allows clients to receive a stream of data observations via a web socket. ArcGIS Maps SDK for Kotlin allows you to connect to a stream service and manage the information as dynamic entities and display them in a dynamic entity layer. Displaying information from feeds such as a stream service is important in applications like dashboards where users need to visualize and track updates of real-world objects in real-time. |
add-dynamic-entity-layer/README.md
Outdated
|
||
## How it works | ||
|
||
1. Create an `ArcGIStreamService` using a `Uri`. |
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.
In Kotlin we just take Url string. This seems to be dotnet specific
Thanks @rchintapalli for suggestions! good catch |
Thanks @shubham7109 @rchintapalli for reviews! Merged. |
Description
PR to add a new Kotlin sample "Add Dynamic Entity Layer" in
Layers
category.Links and Data
Sample Epic:
runtime/kotlin/issues/2927
What To Review
README.md
andREADME.metadata.json
filesHow to Test
Run the sample on the sample viewer or the repo.