Skip to content

Commit bccd129

Browse files
authored
Update task to use Map (#772)
* update task to use map * Update README.md
1 parent f7bf3d4 commit bccd129

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

map/download-preplanned-map/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Select a map area from the Preplanned Map Areas list. Click the Download button
1717
## How it works
1818

1919
1. Open the online `ArcGISMap` from a `PortalItem` and display it.
20-
2. Create an `OfflineMapTask` using the portal item.
20+
2. Create an `OfflineMapTask` using the map.
2121
3. Get the `PreplannedMapArea`s from the task, and then load them.
2222
4. To download a selected map area, create the default `DownloadPreplannedOfflineMapParameters` from the task using the selected preplanned map area.
2323
5. Set the update mode of the preplanned map area.

map/download-preplanned-map/src/main/java/com/esri/samples/download_preplanned_map/DownloadPreplannedMapController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ private void initialize() {
9191
areaOfInterestRenderer.setSymbol(areaOfInterestLineSymbol);
9292
areasOfInterestGraphicsOverlay.setRenderer(areaOfInterestRenderer);
9393

94-
// create an offline map task for the portal item
95-
offlineMapTask = new OfflineMapTask(portalItem);
94+
// create an offline map task for the map
95+
offlineMapTask = new OfflineMapTask(onlineMap);
9696

9797
// use a cell factory which shows the preplanned area's title
9898
preplannedAreasListView.setCellFactory(c -> new PreplannedMapAreaListCell());

0 commit comments

Comments
 (0)