|
POST
|
Hello André, I just tested your runtime content ("arcsde_data.geodatabase") in my sample read offline gdb code and it works as expected. Here I attach you the screenshot. Please verify the code again and make sure the path is valid and the AGSFeatureTableLayer add to the mapView. Suganya Baskaran Hope this can help.
... View more
08-15-2014
08:31 AM
|
0
|
0
|
761
|
|
POST
|
No matter what, the map need a initial extent view on the mapView. Even the world map you also have a center point to locate, right? You can try this centerAtPoint to insatiate the mapview about the world.
AGSPoint *newPoint = [AGSPoint pointWithX:-90 y:37 spatialReference:self.mapView.spatialReference];
[self.mapView centerAtPoint:newPoint animated:NO];
//enable wrap around
[self.mapView enableWrapAround];
... View more
08-12-2014
10:56 AM
|
0
|
1
|
1159
|
|
POST
|
Hello Akshat, I think the reason is because you didn't set the map extent when you load the mapview. The map is not taking the full height due to view is out of the level of detail (LOD). The easy way to fix is to set a map extent, please take a look about this documentation about Navigating the map—ArcGIS Runtime SDK for iOS Here I also shared with you a snippet about how to set a map extent under the (void)viewDidLoad function, also be careful the xmin, ymin, xmax and ymax should match with your tile map spatialReference:
// Add a basemap tiled layer
NSURL *url = [NSURL URLWithString:@"http://services.arcgisonline.com/arcgis/rest/services/ESRI_StreetMap_World_2D/MapServer"];
AGSTiledMapServiceLayer *tiledLayer = [AGSTiledMapServiceLayer tiledMapServiceLayerWithURL:url];
[self.mapView addMapLayer:tiledLayer withName:@"Basemap Tiled Layer"];
AGSEnvelope *envelope = [AGSEnvelope envelopeWithXmin:-124.83145667 ymin:30.49849464 xmax:-113.91375495 ymax:44.69150688 spatialReference:_mapView.spatialReference];
[self.mapView zoomToEnvelope:envelope animated:NO];
Hope this can help. Best Regards,
... View more
08-12-2014
09:15 AM
|
0
|
3
|
1159
|
|
POST
|
Hi there, Glad to you make it work. However, I just tried to download a new file of our sample from Esri/arcgis-runtime-samples-ios · GitHub And using both iPad and iPhone simulator to test are both works fine. The storyboard has the addFeatureAction as well. I am pretty sure the sample code works fine. But anyway, it is good that the sample works on your side. Best Regards,
... View more
07-24-2014
01:52 PM
|
0
|
1
|
996
|
|
POST
|
Hi there, I think I figure out your problem. The reason is because you using iOS8 to test the application.(see the windows title of the simulator) Currently, ArcGIS Runtime SDK for iOS not officially support iOS8. That's why you may encounter some unknown issue. You should change the deployment target to either 7.0 or 7.1 as the screenshot I took to you. Like I said in the previous post, make sure using XCode 5 and iOS 7 SDK. It's on the System requirements—ArcGIS Runtime SDK for iOS
... View more
07-23-2014
05:37 PM
|
0
|
1
|
1390
|
|
POST
|
I deploy on iPhone5, simulator for iPhone and iPad. Here is the screenshot I just took from my simulator for iPad. I suspect might related to network issue, can you try to hit the url directly? http://services.arcgis.com/P3ePLMYs2RVChkJx/ArcGIS/rest/services/Wildfire/FeatureServer Are you using any proxy setting or any firewall that block the access?
... View more
07-23-2014
04:06 PM
|
0
|
5
|
1390
|
|
POST
|
Hmm... That's a little strange. Have you changed any code behind? I would suggest to unzip a new OfflineEditingSample and deploy again. You shouldn't have to worry about those framework, those are only needed when creating a new project from scratch.
... View more
07-23-2014
03:22 PM
|
0
|
7
|
1390
|
|
POST
|
Hello there, Welcome to the ArcGIS Runtime SDK for iOS world. The sample works fine on my side. I wonder which version of the ArcGIS Runtime SDK for iOS are you using? Make sure using the latest version 10.2.3 ArcGIS SDK for iOS 10.2.3 Then, download the latest version of the sample code on Esri Github Esri/arcgis-runtime-samples-ios Also, make sure using XCode 5 and iOS 7 SDK (or higher) are required to develop applications with ArcGIS Runtime SDK for iOS. Please check this link: System requirements—ArcGIS Runtime SDK for iOS For the Plus icon, yes you are right, that is add new features on the map. The categories based on the feature server. Here are the screenshots (Left: the main screen ; Right: once click the "+" button): Hope this can help. Best Regards,
... View more
07-23-2014
02:50 PM
|
0
|
9
|
1390
|
|
POST
|
Hello André, I wonder what's your gdb file spatial reference it is when you generate the Runtime content from ArcMap. Here is the paragraph I found from Create an offline map—ArcGIS Runtime SDK for iOS "If your features are not displaying, make sure you have panned or zoomed to the appropriate extent, and that the spatial reference of the geodatabase matches the spatial reference of the map. You can set the spatial reference of a local geodatabase at generation time, as described in Generate a geodatabase from a feature service." Would you try use my snippet that I sent to you in my last reply to test whether the offline map can load?
... View more
07-23-2014
01:20 PM
|
0
|
0
|
761
|
|
POST
|
Hello André, I would suggest you to check the value of NSString *pathGDBString when you set the breakpoint on here. Two things to make sure, one the path is correct and the gdb file has geometry for the layers. Here I attached my snippet code to load the gdb file. Hope this can help.
- (void)viewDidLoad {
NSError *error;
NSString *gdbPathREST = [self gdbPathREST];
NSString *gdbName = @"gdbName.geodatabase";
NSString *gdbFileFullPath = [gdbPathREST stringByAppendingPathComponent:gdbName];
AGSGDBGeodatabase *gdb = [[AGSGDBGeodatabase alloc] initWithPath:gdbFileFullPath error:&error];
for (AGSFeatureTable* fTable in gdb.featureTables) {
if ([fTable hasGeometry]) {
AGSFeatureTableLayer *fTableLayer = [[AGSFeatureTableLayer alloc]initWithFeatureTable:fTable];
[self.mapView addMapLayer:fTableLayer];
}
-(NSString*)gdbPathREST {
NSString *documentsDirectory;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
if ([paths count] > 0) {
documentsDirectory = paths[0];
}
NSLog(@"Geodatabase directory: %@", documentsDirectory);
return documentsDirectory;
}
... View more
07-23-2014
11:29 AM
|
0
|
2
|
761
|
|
POST
|
Hello Adrian, I am not really sure which ID results that you talking about. But here is the screenshot for iOS IdentifyFeatureSample, the AGSIdentifyTask and AGSIDentifyDelegate control the little popup window, if you check the code behind, when click any point on the screen, the breakpoint will hit this method: - (void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results The call out content you can setup based on different parameters that content from your REST or just pure text. For example, in this screenshot, you can see the stateName return from a query from REST and pure text "Click for more detail": NSString *stateName = [((AGSIdentifyResult*)[results objectAtIndex:0]).feature attributeAsStringForKey:@"STATE_NAME"]; self.mapView.callout.title = stateName; self.mapView.callout.detail = @"Click for more detail.."; Here is the API reference for 10.2.3: <AGSIdentifyTaskDelegate> Protocol Reference and AGSIdentifyTask Class Reference I would suggest to check the link from GitHub about this sample. Download it and try to see the detail IdentifyTaskSample Hope this can help. Best Regards,
... View more
07-23-2014
11:07 AM
|
0
|
0
|
894
|
|
POST
|
Hello Will, The issue is because of the security setting for Internet Explorer Here is way to change the full file path to only the file name: 1. Open Internet Explore and click Tools --> Internet Options --> Security --> Custom level button 2. Confirm that disable "Include local directory path when uploading files to a server." is checked 3. Click OK and try to attach new file. The issue should be fixed. Hope this can help. Best Regards,
... View more
07-11-2014
08:55 AM
|
0
|
0
|
685
|
|
POST
|
Hi there, For the latest version of the ArcGIS Runtime for iOS 10.2.3, the XCode 5/5.1 and iOS 7 SDK (or higher) are required to develop the application. Please check the System requirements for details. For your question about using older iOS SDK such as 6.1 or any other iOS SDK lower than 7. You have to use older version of ArcGIS Runtime for iOS such as 10.1. You can find the older version of the ArcGIS Runtime for iOS SDK here: http://www.esri.com/apps/products/download/index.cfm The ArcGIS Runtime for iOS 10.1.1 require at least iOS 5 on the device: https://developers.arcgis.com/ios/info/what-s-new-10-1-1-.htm This is just for answering the question, but we highly suggest our users to using our latest version of SDK. Hope this can help.
... View more
06-30-2014
08:30 AM
|
0
|
0
|
565
|
|
POST
|
Hello Vikrant, Use this line to load the local geodatabase: [PHP]NSString *gdbPath = [[NSBundle mainBundle]pathForResource:@"gdb_file_name" ofType:@"geodatabase"];[/PHP] This is a generic way about how to load a file from Resources folder in iOS: http://www.android-ios-tutorials.com/257/read-files-in-resources-folder-ios/ Hope this can help.
... View more
06-23-2014
02:43 PM
|
0
|
0
|
1702
|
|
POST
|
Hi Darren, Method dataChanged has been removed. The map display will update automatically if you add or remove a graphic, or change a graphic by modifying its attributes, assigning it a new symbol or a new geometry. However, there may be cases when you modify objects associated with the graphic, but not the graphic itself. For example, changing properties on a graphic's symbol, or changing the shape of a graphic's geometry. In such cases, the map display will not update automatically. To ensure that the graphic is redrawn, assign the modified symbol or geometry back to the graphic. Please check this URL Release notes for 10.1.1 under the "AGSGraphicsLayer" subtitle you can find the expatiation. Also, you can take this FeatureLayerEditingSample on Github as an example to see how [PHP]-(void)popupsContainer:(id<AGSPopupsContainer>)popupsContainer didFinishEditingForPopup:(AGSPopup*)popup{[/PHP] handle the method. Hope those information can help. Best Regards,
... View more
06-20-2014
08:33 AM
|
0
|
0
|
696
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 07-20-2015 10:15 AM | |
| 1 | 07-31-2015 08:53 AM | |
| 1 | 01-28-2016 04:55 PM | |
| 1 | 02-22-2016 02:07 PM | |
| 1 | 05-20-2015 04:54 PM |
| Online Status |
Offline
|
| Date Last Visited |
06-27-2025
09:24 AM
|