- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view from its nib. NSURL *basemapURL = [[NSURL alloc] initWithString:@"http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer"]; AGSTiledMapServiceLayer *basemapLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:basemapURL]; [mapView addMapLayer:basemapLayer withName:@Basemap Tiled Layer]; mapView.layerDelegate = self; mapView.touchDelegate = self; }
/** The map coordinates of where the map display is anchored. Usually this is the center of the map. However it could be different. For example, if the map is anchored on the location display, this will be the coordinate of the location display. @agssince{10.1.1, 10.2} */ @property (nonatomic, copy, readonly) AGSPoint *mapAnchor; /** Limits the amount by which the map can be panned such that its anchor point (typically the center) never goes outside this envelope. By default, this is the full envelope of the basemap layer. If you set a custom extent, the envelope must have the same spatial reference as the map. @agssince{2.1, 10.2} */ @property (nonatomic, strong, readwrite) AGSEnvelope *maxEnvelope;
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.