|
ArcGIS Runtime SDK for iOS
100.9
|
A basemap for a map or a scene.
Instances of this class represent a basemap for a map or a scene.
A basemap helps orient the user and provides a geographical context for the content you want to display in the scene. It is used for locational reference and provides a framework on which you can overlay operational layers. Thus, the basemap serves as a foundation and provides a framework for working with information geographically. It's content is typically static and does not change frequently. For eg, streets, parcel boundaries, or geographic features such as rivers. Some basemaps also contain reference layers, such as labels, which are drawn on top of operational layers.
ArcGIS Online provides a number of ready-to-use basemaps such as streetsBasemap (AGSBasemap), topographicBasemap (AGSBasemap), etc, but you can also create your own basemap by mashing up layers. A basemap is composed of a collection of baseLayers, and referenceLayers. Base layers are displayed at the bottom, and reference layers are displayed at the top, with other operational layers sandwiched between them. The content of a basemap is typically static and does not change frequently.
Instance Methods | |
| (void) | - cancelLoad |
| (instancetype) | - init |
| (instancetype) | - initWithBaseLayer: |
| (instancetype) | - initWithBaseLayers:referenceLayers: |
| (instancetype) | - initWithItem: |
| (nullable instancetype) | - initWithURL: |
| (void) | - loadWithCompletion: |
| (void) | - retryLoadWithCompletion: |
| (nullable id) | - toJSON: |
Class Methods | |
| (instancetype) | + basemap |
| (instancetype) | + basemapWithBaseLayer: |
| (instancetype) | + basemapWithBaseLayers:referenceLayers: |
| (instancetype) | + basemapWithItem: |
| (nullable instancetype) | + basemapWithURL: |
| (instancetype) | + darkGrayCanvasVectorBasemap |
| (nullable id< AGSJSONSerializable >) | + fromJSON:error: |
| (instancetype) | + imageryBasemap |
| (instancetype) | + imageryWithLabelsBasemap |
| (instancetype) | + imageryWithLabelsVectorBasemap |
| (instancetype) | + lightGrayCanvasBasemap |
| (instancetype) | + lightGrayCanvasVectorBasemap |
| (instancetype) | + nationalGeographicBasemap |
| (instancetype) | + navigationVectorBasemap |
| (instancetype) | + oceansBasemap |
| (instancetype) | + openStreetMapBasemap |
| (instancetype) | + streetsBasemap |
| (instancetype) | + streetsNightVectorBasemap |
| (instancetype) | + streetsVectorBasemap |
| (instancetype) | + streetsWithReliefVectorBasemap |
| (instancetype) | + terrainWithLabelsBasemap |
| (instancetype) | + terrainWithLabelsVectorBasemap |
| (instancetype) | + topographicBasemap |
| (instancetype) | + topographicVectorBasemap |
Properties | |
| NSMutableArray< AGSLayer * > * | baseLayers |
| AGSItem * | item |
| NSError * | loadError |
| AGSLoadStatus | loadStatus |
| NSString * | name |
| NSMutableArray< AGSLayer * > * | referenceLayers |
| NSDictionary< NSString *, id > * | unknownJSON |
| NSDictionary< NSString *, id > * | unsupportedJSON |
| + (instancetype) basemap |
Instantiates a new basemap.
| + (instancetype) basemapWithBaseLayer: | (AGSLayer *) | layer |
Instantiates a new basemap.
| layer | The layer to be used as the basemap's base layer |
| + (instancetype) basemapWithBaseLayers: | (NSArray< AGSLayer * > *) | baseLayers | |
| referenceLayers: | (nullable NSArray< AGSLayer * > *) | referenceLayers | |
Instantiates a new basemap.
| baseLayers | The layers to be used as the basemap's base layers |
| referenceLayers | The layers to be used as the basemap's reference layers |
| + (instancetype) basemapWithItem: | (AGSItem *) | item |
Instantiates a new basemap.
| item | The web map item on ArcGIS Online or an on-premise portal that represents a basemap |
AGSPortalItemTypeWebMap. | + (nullable instancetype) basemapWithURL: | (NSURL *) | URL |
Instantiate a basemap with a URL to a portal item which is a web basemap.
| URL | of the web basemap on ArcGIS Online or an on-premises portal |
|
requiredinherited |
Cancels loading if it is in progress, otherwise it does nothing. This should be called carefully because other objects could be waiting for loadWithCompletion: or retryLoadWithCompletion: to complete and this will call them all back with the error of NSUserCancelledError
| + (instancetype) darkGrayCanvasVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Dark Gray Canvas basemap.
|
staticrequiredinherited |
Initializes and returns an object from its JSON representation.
| JSONObject | NSDictionary or NSArray containing the JSON. |
| error | encountered during the operation, if any. |
| + (instancetype) imageryBasemap |
Instantiates a new basemap based on ArcGIS Online World Imagery basemap.
| + (instancetype) imageryWithLabelsBasemap |
Instantiates a new basemap based on ArcGIS Online Imagery with Labels basemap.
| + (instancetype) imageryWithLabelsVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Imagery Hybrid basemap.
| - (instancetype) init |
| - (instancetype) initWithBaseLayer: | (AGSLayer *) | layer |
Instantiates a new basemap.
| layer | The layer to be used as the basemap's base layer |
| - (instancetype) initWithBaseLayers: | (NSArray< AGSLayer * > *) | baseLayers | |
| referenceLayers: | (nullable NSArray< AGSLayer * > *) | referenceLayers | |
Instantiates a new basemap.
| baseLayers | The layers to be used as the basemap's base layers |
| referenceLayers | The layers to be used as the basemap's reference layers |
| - (instancetype) initWithItem: | (AGSItem *) | item |
Instantiates a new basemap.
| item | The item on ArcGIS Online or an on-premise portal that represents a basemap |
| - (nullable instancetype) initWithURL: | (NSURL *) | URL |
Instantiate a basemap with a URL to a portal item which is a web basemap.
| URL | of the web basemap on ArcGIS Online or an on-premises portal |
| + (instancetype) lightGrayCanvasBasemap |
Instantiates a new basemap based on ArcGIS Online Light Gray Canvas basemap.
| + (instancetype) lightGrayCanvasVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Light Gray Canvas basemap.
|
requiredinherited |
Loads data for the object asynchronously. The completion block is invoked upon completion.
You can call this method any number of times, however only one attempt is made to load the data. If it is already loading, it will just continue to load (i.e. not force a reload). If it has already loaded successfully, the completion block will be invoked right away. If it has already failed to load, the completion block will be invoked right away with error previously encountered. This method supports multiple callers and will call them all back on completion. However, each caller's completion block will be invoked once and only once.
| completion | block that is invoked when object loads successfully or fails to load. An error is passed to the block if the object fails to load. |
- cancelLoad to cancel loading - retryLoadWithCompletion: to force reload | + (instancetype) nationalGeographicBasemap |
Instantiates a new basemap based on ArcGIS Online National Geographic World basemap.
| + (instancetype) navigationVectorBasemap |
Instantiates a new basemap based on ArcGIS Online World Navigation Map basemap.
| + (instancetype) oceansBasemap |
Instantiates a new basemap based on ArcGIS Online Oceans basemap.
| + (instancetype) openStreetMapBasemap |
Instantiates a new basemap based on OpenStreetMap basemap.
|
requiredinherited |
Tries to reload when an object has failed to load. This method should be called judiciously. It should be called when:
cancelLoad and then this methodIf the data hasn't started loading, it will start loading. If it is already loading, it will just continue to load. If it has already loaded successfully, calls back right away. If it has already failed to load, tries again. This method supports multiple callers and will call them all back on completion. However, each caller's completion block will be invoked once and only once.
| completion | block that is invoked when object loads successfully or fails to load. An error is passed to the block if the object fails to load. |
| + (instancetype) streetsBasemap |
Instantiates a new basemap based on ArcGIS Online World Street basemap.
| + (instancetype) streetsNightVectorBasemap |
Instantiates a new basemap based on ArcGIS Online World Street Map (Night) basemap.
| + (instancetype) streetsVectorBasemap |
Instantiates a new basemap based on ArcGIS Online World Street Map basemap.
| + (instancetype) streetsWithReliefVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Streets (with Relief) basemap.
| + (instancetype) terrainWithLabelsBasemap |
Instantiates a new basemap based on ArcGIS Online Terrain with Labels basmap.
| + (instancetype) terrainWithLabelsVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Terrain with Labels basemap.
|
requiredinherited |
Returns JSON representation for this object.
| error | encountered during the operation, if any. |
NSDictionary or NSArray containing the JSON. Reimplemented in AGSPortalItem.
| + (instancetype) topographicBasemap |
Instantiates a new basemap based on ArcGIS Online World Topographic basemap.
| + (instancetype) topographicVectorBasemap |
Instantiates a new basemap based on ArcGIS Online Topographic basemap.
|
readnonatomicstrong |
The base layers of this basemap. Base layers are displayed at the bottom in a mapview, and reference layers are displayed at the top, with the map's operational layers sandwiched between them. The layers are drawn in a bottom-up fashion with the 0th layer in the list drawn first, next layer drawn on top of the previous one, and so on.
|
readnonatomicstrong |
The portal item that was used to create the basemap
|
readnonatomicstronginherited |
The error that was encountered during the most recent load operation. Will be nil if the operation succeeded.
|
readrequirednonatomicassigninherited |
Status of the load operation.
|
readwritenonatomiccopy |
The name of the basemap
|
readnonatomicstrong |
The reference layers of this basemap. Base layers are displayed at the bottom in a mapview, and reference layers are displayed at the top, with the map's operational layers sandwiched between them. The layers are drawn in a bottom-up fashion with the 0th layer in the list drawn first, next layer drawn on top of the previous one, and so on.
|
readrequirednonatomiccopyinherited |
A dictionary of values that was in the source JSON but was unparsed by API.
NSDictionary containing the unknown JSON.
|
readnonatomiccopyinherited |
A dictionary of values that are supported by the REST API, but not exposed through the SDK API.
NSDictionary containing the unsupported JSON.