Skip to content

Commit 0535683

Browse files
committed
resolve comments
1 parent fd159ff commit 0535683

File tree

1 file changed

+1
-10
lines changed
  • identify-layer-features/src/main/java/com/esri/arcgismaps/sample/identifylayerfeatures/components

1 file changed

+1
-10
lines changed

Diff for: identify-layer-features/src/main/java/com/esri/arcgismaps/sample/identifylayerfeatures/components/MapViewModel.kt

+1-10
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,6 @@ import androidx.compose.runtime.mutableStateOf
2121
import androidx.compose.ui.unit.dp
2222
import androidx.lifecycle.AndroidViewModel
2323
import com.arcgismaps.data.ServiceFeatureTable
24-
import com.arcgismaps.geometry.Point
25-
import com.arcgismaps.geometry.SpatialReference
2624
import com.arcgismaps.mapping.ArcGISMap
2725
import com.arcgismaps.mapping.BasemapStyle
2826
import com.arcgismaps.mapping.Viewpoint
@@ -76,14 +74,7 @@ class MapViewModel(
7674
// add the world cities layer with and the damaged properties feature layer
7775
map.apply {
7876
// set initial Viewpoint to North America
79-
initialViewpoint = Viewpoint(
80-
center = Point(
81-
x = -10977012.785807,
82-
y = 4514257.550369,
83-
spatialReference = SpatialReference(wkid = 3857)
84-
),
85-
scale = 68015210.0
86-
)
77+
initialViewpoint = Viewpoint(39.8, -98.6, 5e7)
8778
operationalLayers.addAll(listOf(mapImageLayer, featureLayer))
8879
}
8980

0 commit comments

Comments
 (0)