Skip to content

Commit

Permalink
Update MapViewModelTemplate.kt
Browse files Browse the repository at this point in the history
with TODO reminding that the mutablestate object is only needed if the map is expected to change in this sample
  • Loading branch information
TADraeseke authored Dec 10, 2024
1 parent ab024d9 commit eb8ac9f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/NewModuleScript/MapViewModelTemplate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import com.esri.arcgismaps.sample.sampleslib.components.MessageDialogViewModel
import kotlinx.coroutines.launch

class MapViewModel(application: Application) : AndroidViewModel(application) {
// TODO - The ArcGISMap only needs to be wrapped in a MutableState object if it will change in this sample
val arcGISMap by mutableStateOf(
ArcGISMap(BasemapStyle.ArcGISNavigationNight).apply {
initialViewpoint = Viewpoint(39.8, -98.6, 10e7)
Expand Down

0 comments on commit eb8ac9f

Please sign in to comment.