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 1 commit
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, which requires the [toolkit](https://github.com/Esri/arcgis-runtime-toolkit-qt) to be cloned and set up locally. For information about setting up the toolkit, as well as code for the underlying component, visit the repository's [UI Tools page](https://github.com/Esri/arcgis-runtime-toolkit-qt/blob/main/uitools).

## 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
Loading