Skip to content

Change Dataset used in the Display Overview Map sample #365

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

Open
wants to merge 4 commits into
base: v.next
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions samples/display-overview-map/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,14 @@ notice the viewpoint and scale of the linked overview map update automatically.
* MapView
* OverviewMap

## About the data

The data used in this sample is the [OpenStreetMap Tourist Attractions for North America](https://www.arcgis.com/home/item.html?id=addaa517dde346d1898c614fa91fd032) feature layer, which is scale-dependent and displays at scales larger than 1:160,000.

## Additional information

This sample uses the [overview map toolkit component](https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit/tree/main/toolkit/geoview-compose#display-an-overviewmap). For information about setting up the toolkit visit the [developer guide doc](https://developers.arcgis.com/kotlin/toolkit/#reference-the-library-from-jfrog).

## Tags

context, inset, map, minimap, overview, preview, small scale, toolkit, view
Binary file modified samples/display-overview-map/display-overview-map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import kotlinx.coroutines.launch

class DisplayOverviewMapViewModel(app: Application) : AndroidViewModel(app) {

private val initialViewpoint = Viewpoint(latitude = -41.44, longitude = 173.52, scale = 10e6)
private val initialViewpoint = Viewpoint(latitude = 50.431999, longitude = -104.607293, scale = 10e3)

// the current viewpoint of the map
var viewpoint by mutableStateOf(initialViewpoint)
Expand All @@ -42,7 +42,7 @@ class DisplayOverviewMapViewModel(app: Application) : AndroidViewModel(app) {

// set up feature layer
private val touristAttractionsUrl =
"https://services1.arcgis.com/ligOmcZkuYGDjlNm/arcgis/rest/services/Tourism_Attractions/FeatureServer/2"
"https://services6.arcgis.com/Do88DoK2xjTUCXd1/arcgis/rest/services/OSM_NA_Tourism/FeatureServer/0"
private val touristAttractionsTable = ServiceFeatureTable(touristAttractionsUrl)
private val featureLayerTouristAttractions = FeatureLayer.createWithFeatureTable(touristAttractionsTable)

Expand Down
2 changes: 1 addition & 1 deletion samples/trace-utility-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The [Naperville electrical](https://sampleserver7.arcgisonline.com/server/rest/s

Using utility network on ArcGIS Enterprise 10.8 requires an ArcGIS Enterprise member account licensed with the [Utility Network user type extension](https://enterprise.arcgis.com/en/portal/latest/administer/windows/license-user-type-extensions.htm#ESRI_SECTION1_41D78AD9691B42E0A8C227C113C0C0BF). Please refer to the [utility network services documentation](https://enterprise.arcgis.com/en/server/latest/publish-services/windows/utility-network-services.htm).

A `UtilityNetworkTrace` toolkit component can be used for various utility network related use cases. For information about setting up the toolkit, as well as code for the underlying component, visit the [toolkit repository](https://github.com/Esri/arcgis-maps-sdk-swift-toolkit).
A `UtilityNetworkTrace` toolkit component can be used for various utility network related use cases. For information about setting up the toolkit, as well as code for the underlying component, visit the [toolkit repository](https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit).
Copy link
Collaborator

Choose a reason for hiding this comment

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

@shubham7109 - for any mentions in sample readmes about setting up the toolkit, I think it would be better to link to our developer pages instead of the toolkit repository. Any thoughts? Maybe we should come up with a standard sentence that can be used by all samples that depend on the toolkit.


This sample uses the GeoView-Compose Toolkit module to be able to implement a composable MapView. Use the [UtilityNetworkTrace](https://github.com/Esri/arcgis-maps-sdk-kotlin-toolkit/tree/main/toolkit/utilitynetworks) tool to help configure, run, and visualize UtilityNetworkTraces on a composable MapView.

Expand Down
Loading