POST
|
You may need to "load" the features. Similar question asked on other platforms: https://community.esri.com/t5/arcgis-runtime-sdk-for-qt/when-calling-queryfeatures-on-a-featuretable-not-all-attributes/td-p/386980 https://community.esri.com/t5/arcgis-runtime-sdk-for-ios/attributes-results-dosen-t-match-fields-count-in-feature-layer/td-p/506735 https://community.esri.com/t5/arcgis-runtime-sdk-for-net/missing-attributes-after-pulling-a-feature-from-feature-service/td-p/355364
... View more
12-22-2020
09:25 AM
|
0
|
1
|
1416
|
POST
|
Try waiting until - (void)didOpenWebMap:(AGSWebMap *)webMap intoMapView:(AGSMapView *)mapView Somewhere between webMapDidLoad: and didOpenWebMap:intoMapView the SDK may be setting the envelope.
... View more
09-25-2014
01:21 PM
|
0
|
0
|
158
|
POST
|
Hey Douglas Bocking, finally took a look at your code. I agree with Gagandeep Singh. With some minor fixes your project works, and I hope you understand how the pieces fit together and that you continue to work on your app.
... View more
08-25-2014
04:24 AM
|
1
|
0
|
495
|
POST
|
I think it is a simple error, but still a compiler error. If the code you posted is still the code you are trying to compile, the error you are seeing makes sense. Take a closer look. Or, if you like, attach your project, or put it in a public repo on github, and I'll tweak the code so you can see where the error is. Here is a simplified version of your viewcontroller, to illustrate.
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad
{
[super viewDidLoad];
self.webmap = [[AGSWebMap alloc] initWithItemId:@"7acfdd8e056240bfaa5ba46db7cdae7d" credential:nil];
self.webmap.delegate = self;
}
- (void)webMapDidLoad:(AGSWebMap *)webmap
{
[self.webmap openIntoMapView:self.mapView];
}
@end
In viewDidLoad the webmap is created and its delegate assigned. When the webmap loads it calls the delegate method webMapDidLoad, at which point the webmap is opened in the map view. I've moved the opening curly-brace of each method to a separate line. This may not be the preferred style, but I think it helps clarify these sorts of compiler errors caused by an imbalance or misplacement of braces.
... View more
08-14-2014
04:23 AM
|
1
|
4
|
495
|
POST
|
Looks like the code isn't correctly formatted, like some code was incorrectly pasted into viewDidLoad. Look at the curly braces, there should be a "}" at line 16 before the function openIntoMapView. I see a couple other similar issues. I suggest taking a look at the SDK sample on opening a web map: Viewing a web map—ArcGIS Runtime SDK for iOS | ArcGIS for Developers Follow the link to a sample project on github.
... View more
08-12-2014
12:33 PM
|
0
|
6
|
495
|
Title | Kudos | Posted |
---|---|---|
1 | 08-14-2014 04:23 AM | |
1 | 08-25-2014 04:24 AM |
Online Status |
Offline
|
Date Last Visited |
12-22-2020
11:36 AM
|