|
POST
|
Looks like something wrong with the simulator. Please restart your machine and then try... Regards, Nimesh
... View more
12-20-2011
11:12 AM
|
0
|
0
|
3118
|
|
POST
|
Do you see anything printed on the debug window for following NSLog statements? NSLog(@"delegate webMapDidLoad"); NSLog(@"delegate didOpenWebMap"); Regards, Nimesh
... View more
12-20-2011
10:25 AM
|
0
|
0
|
3118
|
|
POST
|
Okie..i know what's happening. You must retain webmap so the instance remain around until web map finish loading and then you can open into mapView. Here is the code you should try.. ViewController.h #import <UIKit/UIKit.h>
#import "ArcGis.h"
@interface <Classname> : UIViewController <AGSWebMapDelegate>
@interface ViewController : UIViewController
@property (retain, nonatomic) IBOutlet AGSMapView *mapView;
@property (retain, nonatomic) AGSWebmap *webmap;
@end
ViewController.m - (void)viewDidLoad {
AGSCredential* credential = [[[AGSCredential alloc] initWithUser:@"<my_user_name>" password:@"<My_passdword>"] autorelease];
credential.authType = AGSAuthenticationTypeToken;
self.webmap = [[AGSWebMap alloc] initWithItemId:@"e20f2f98b35c4963a5e124bf43c1d74a" credential:credential];
self.webmap.delegate = self
}
#pragma mark AGSWebMapDelegate
- (void)webMapDidLoad:(AGSWebMap *)webMap {
NSLog(@"delegate webMapDidLoad");
//open webmap in mapview
[self.webMap openIntoMapView:self.mapView];
}
-(void)didOpenWebMap:(AGSWebMap*)webMap intoMapView:(AGSMapView*)mapView {
NSLog(@"delegate didOpenWebMap");
} Even though, the web map is public you must use the complete method.. self.webmap = [[AGSWebMap alloc] initWithItemId:@"itemid" credential:nil]; Regards, Nimesh
... View more
12-20-2011
06:58 AM
|
0
|
0
|
3118
|
|
POST
|
Could you please post a sample app here, I would like to test. Regards, Nimesh
... View more
12-19-2011
01:47 PM
|
0
|
0
|
1435
|
|
POST
|
The class from where you are executing the find task and the class where you adopted a AGSFindTaskDelegate are same? If possible, attach a sample application to test. Regards, Nimesh
... View more
12-19-2011
12:39 PM
|
0
|
0
|
1435
|
|
POST
|
Just add a code line... AGSCredential* credential = [[[AGSCredential alloc] initWithUser:@"<my_user_name>" password:@"<My_passdword>"] autorelease];
credential.authType = AGSAuthenticationTypeToken;
AGSWebMap* webmap = [[AGSWebMap alloc] initWithItemId:@"e20f2f98b35c4963a5e124bf43c1d74a" credential:credential];
[webmap openIntoMapView:self.mapView]; //added Regards, Nimesh
... View more
12-19-2011
11:23 AM
|
0
|
0
|
3118
|
|
POST
|
You are initializing self.findTask2, setting delegate for self.findTask and executing self.findTask. So self.findTask is never initialized? Regards, Nimesh
... View more
12-19-2011
11:19 AM
|
0
|
0
|
1435
|
|
POST
|
Just set the outFields of the feature layers before adding them to map and it should work. Like below... //add feature layers AGSFeatureLayer *trailsLayer = [AGSFeatureLayer featureServiceLayerWithURL:[NSURL URLWithString:trailsURL] mode:AGSFeatureLayerModeOnDemand]; trailsLayer.outFields = [NSArray arrayWithObject:@"*"]; //added [self.mapView addMapLayer:trailsLayer withName:@"Trails"]; Regards, Nimesh
... View more
12-15-2011
11:30 AM
|
0
|
0
|
289
|
|
POST
|
You can add attachment to the post here. Regards, Nimesh
... View more
12-15-2011
08:37 AM
|
0
|
0
|
1916
|
|
POST
|
If possible, can you please share your sample application so I can test it? Regards, Nimesh
... View more
12-15-2011
08:32 AM
|
0
|
0
|
1916
|
|
POST
|
Since, it's a new feature, you MUST add it to the feature layer before creating a popupInfo. Are doing that? [self.featureLayer addGraphic:graphic]; Regards, Nimesh
... View more
12-15-2011
08:07 AM
|
0
|
0
|
1916
|
|
POST
|
Your code should be... AGSGraphic *graphic = [featureSet.features objectAtIndex:0]; AGSEnvelope *env = (AGSEnvelope *)graphic.geometry.envelope; Regards, Nimesh
... View more
12-15-2011
07:36 AM
|
0
|
0
|
1095
|
|
POST
|
Let me ask few questions to narrow down the issue... 1. Is this a new graphic created or an existing graphic on the map? 2. Is this graphic belong to a feature layer? 3. Is this feature layer editable? 4. You are creating a popupInfo for 'graphic' in following code line... self.popupInfo = [AGSPopupInfo popupInfoForGraphic:graphic]; but creating a popupVC for self.newFeature. Why? self.popupVC = [[[AGSPopupsContainerViewController alloc]initWithPopupInfo:self.popupInfo graphic:self.newFeature usingNavigationControllerStack:YES]autorelease]; Are you missing a code line? self.newFeature = graphic? Regards, Nimesh
... View more
12-15-2011
07:30 AM
|
0
|
0
|
1916
|
|
POST
|
The detail steps are outlined in the Configuring an Xcode Project. Regards, Nimesh
... View more
12-14-2011
11:49 AM
|
0
|
0
|
2628
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-18-2024 12:33 PM | |
| 1 | 03-12-2024 08:54 AM | |
| 1 | 09-28-2023 08:19 AM | |
| 2 | 07-28-2023 08:07 AM | |
| 1 | 06-27-2013 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-30-2026
10:15 AM
|