Skip to content

Commit 713ae6c

Browse files
Fixing Create and Save map sample to enable basemap selection on map (#1578)
1 parent 4b07f69 commit 713ae6c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/WinUI/ArcGIS.WinUI.Viewer/Samples/Map/AuthorMap/AuthorMap.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,13 @@ private async Task Initialize()
7171
// Update the UI with basemaps and layers
7272
BasemapListBox.ItemsSource = _basemapNames;
7373

74-
OperationalLayerListBox.ItemsSource = _operationalLayerUrls;
75-
7674
// Add a listener for changes in the selected basemap.
7775
BasemapListBox.SelectionChanged += BasemapSelectionChanged;
7876

7977
// Update the extent labels whenever the view point (extent) changes
8078
MyMapView.ViewpointChanged += (s, evt) => UpdateViewExtentLabels();
79+
80+
OperationalLayerListBox.ItemsSource = _operationalLayerUrls;
8181
}
8282

8383
#region UI event handlers

0 commit comments

Comments
 (0)