ArcGIS Runtime SDK for iOS: AGSMap.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSMap.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSLoadableBase.h>
20 #import <ArcGIS/AGSJSONSerializable.h>
21 #import <ArcGIS/AGSImage.h>
22 #import <ArcGIS/AGSColor.h>
23 #import <ArcGIS/AGSBasemap.h>
24 
25 @class AGSLayer;
26 @class AGSPortalItem;
27 @class AGSEnvelope;
28 @class AGSPortal;
29 @class AGSPortalFolder;
30 @class AGSViewpoint;
31 @class AGSItem;
32 @class AGSBookmark;
34 @class AGSFeatureTable;
35 @class AGSLoadSettings;
36 @class AGSOfflineSettings;
37 @class AGSSpatialReference;
38 
39 @protocol AGSCancelable;
40  //Required for Globals API doc
42 
59 @interface AGSMap : AGSLoadableBase <AGSJSONSerializable, NSCopying>
60 
61 
62 
63 #pragma mark -
64 #pragma mark initializers
65 
69 -(instancetype)init;
70 
75 -(instancetype)initWithSpatialReference:(AGSSpatialReference*)spatialReference;
76 
81 -(instancetype)initWithBasemap:(AGSBasemap*)basemap;
82 
87 -(instancetype)initWithItem:(AGSItem*)item;
88 
98 -(nullable instancetype)initWithURL:(NSURL*)URL;
99 
106 -(instancetype)initWithBasemapType:(AGSBasemapType)basemapType latitude:(double)latitude longitude:(double)longitude levelOfDetail:(NSInteger)levelOfDetail;
107 
111 +(instancetype)map;
112 
117 +(instancetype)mapWithSpatialReference:(AGSSpatialReference*)spatialReference;
118 
123 +(instancetype)mapWithBasemap:(AGSBasemap*)basemap;
124 
129 +(instancetype)mapWithItem:(AGSItem*)item;
130 
137 +(instancetype)mapWithBasemapType:(AGSBasemapType)basemapType latitude:(double)latitude longitude:(double)longitude levelOfDetail:(NSInteger)levelOfDetail;
138 
148 +(nullable instancetype)mapWithURL:(NSURL*)URL;
149 
150 #pragma mark -
151 #pragma mark properties
152 
161 @property (nullable, nonatomic, strong, readwrite) AGSColor *backgroundColor;
162 
166 @property (nullable, nonatomic, strong, readonly) AGSItem *item;
167 
171 @property (nonatomic, copy, readonly) NSArray<AGSTransportationNetworkDataset*> *transportationNetworks;
172 
177 @property (nonatomic, copy, readonly) NSString *version;
178 
182 @property (nonatomic, strong, readwrite) AGSBasemap *basemap;
183 
188 @property (nonatomic, strong, readonly) NSMutableArray<AGSLayer*> *operationalLayers;
189 
193 @property (nullable, nonatomic, strong, readonly) AGSOfflineSettings *offlineSettings;
194 
199 @property (nonatomic, strong, readonly) NSMutableArray<AGSFeatureTable*> *tables;
200 
204 @property (nonatomic, assign, readwrite) double minScale;
205 
209 @property (nonatomic, assign, readwrite) double maxScale;
210 
215 @property (nonatomic, assign, readwrite) double referenceScale;
216 
227 @property (nullable, nonatomic, strong, readonly) AGSSpatialReference *spatialReference;
228 
233 @property (nonatomic, strong, readonly) NSMutableArray<AGSBookmark*> *bookmarks;
234 
238 @property (nullable, nonatomic, strong, readwrite) AGSViewpoint *initialViewpoint;
239 
243 @property (nonatomic, strong, readwrite) AGSLoadSettings *loadSettings;
244 
245 #pragma mark - Save/SaveAs
246 
265 -(id<AGSCancelable>)saveAs:(NSString *)title
266  portal:(AGSPortal *)portal
267  tags:(NSArray<NSString*> *)tags
268  folder:(nullable AGSPortalFolder *)folder
269  itemDescription:(NSString*)itemDescription
270  thumbnail:(nullable AGSImage *)thumbnail
271 forceSaveToSupportedVersion:(BOOL)forceSaveToSupportedVersion
272  completion:(nullable void(^)(NSError * __nullable error))completion;
273 
286 -(id<AGSCancelable>)saveWithForceSaveToSupportedVersion:(BOOL)forceSaveToSupportedVersion
287  completion:(nullable void(^)(NSError * __nullable error))completion;
288 
289 
290 
291 @end
292 
A base class for loadables.
Definition: AGSLoadableBase.h:37
AGSOfflineSettings * offlineSettings
Definition: AGSMap.h:193
A source for dataset containing geographic features or non-spatial records.
Definition: AGSFeatureTable.h:59
double maxScale
Definition: AGSMap.h:209
A transportation network dataset.
Definition: AGSTransportationNetworkDataset.h:30
double referenceScale
Definition: AGSMap.h:215
A bookmark in a map.
Definition: AGSBookmark.h:30
double minScale
Definition: AGSMap.h:204
AGSViewpoint * initialViewpoint
Definition: AGSMap.h:238
A geometry that represents a rectangular shape.
Definition: AGSEnvelope.h:47
Represents the spatial reference of a geometry.
Definition: AGSSpatialReference.h:39
NSString * version
Definition: AGSMap.h:177
NSMutableArray< AGSFeatureTable * > * tables
Definition: AGSMap.h:199
Represents the view location of AGSMapView or AGSSceneView.
Definition: AGSViewpoint.h:49
A basemap for a map or a scene.
Definition: AGSBasemap.h:65
Object representing a unit of content in an ArcGIS portal.
Definition: AGSPortalItem.h:44
AGSColor * backgroundColor
Definition: AGSMap.h:161
A protocol to convert objects to and from JSON.
Definition: AGSJSONSerializable.h:32
A map containing 2D geographic content.
Definition: AGSMap.h:59
Object representing a unit of content.
Definition: AGSItem.h:36
Represents a folder of content within the Portal or Organization.
Definition: AGSPortalFolder.h:31
instancetype init()
Settings for layers in a Map or Scene.
Definition: AGSLoadSettings.h:33
instancetype map()
AGSLoadSettings * loadSettings
Definition: AGSMap.h:243
An abstract base class for all layers.
Definition: AGSLayer.h:169
AGSBasemapType
Definition: AGSBasemap.h:30
NSMutableArray< AGSLayer * > * operationalLayers
Definition: AGSMap.h:188
NSMutableArray< AGSBookmark * > * bookmarks
Definition: AGSMap.h:233
NSArray< AGSTransportationNetworkDataset * > * transportationNetworks
Definition: AGSMap.h:171
Represents settings in an online web map which the author has configured for offline use...
Definition: AGSOfflineSettings.h:38
An Object representing a Portal for ArcGIS.
Definition: AGSPortal.h:98
A protocol exposed by operations that allow cancellation.
Definition: AGSCancelable.h:32