The list of preplanned map areas available obtained from an offline map task. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.2 |
Properties
- count : int
Signals
Methods
- bool contains(PreplannedMapArea area)
- error forEach(callback)
- PreplannedMapArea get(int index)
- int indexOf(PreplannedMapArea area)
Detailed Description
The model returns data for the following roles:
Role | Type | Description |
---|---|---|
itemTitle | string | The title of the portal item for the map area. |
itemId | string | The Id of the porta item for the map area. |
itemDescription | string | The description of the portal item for the map area. |
itemThumbnailUrl | url | The thumbnail of the portal item as a local file URL. |
See also OfflineMapTask, PreplannedMapArea, and PortalItem.
Property Documentation
Signal Documentation
Emitted when the count property of the model changes.
Note: The corresponding handler is onCountChanged
.
Method Documentation
bool contains(PreplannedMapArea area) |
Returns true
if the list model contains the specified area.
Receives a callback function to execute for each PreplannedMapArea in the model.
The callback function can take 0 to 3 optional arguments, in order:
- element Current preplanned map area.
- index Current index in array.
- array Reference to PreplannedMapAreaListModel.
Returns undefined if no error occurred, and an error message otherwise.
const error = preplannedMapAreaListModel.forEach(function(element, index, array) { ... }); if (error) { console.error(error.message); }
PreplannedMapArea get(int index) |
Returns the PreplannedMapArea at the specified index.
int indexOf(PreplannedMapArea area) |
Returns the index of a specific preplanned area (area) from the list model.
This method was introduced in Esri::ArcGISRuntime 100.5..