POST
|
Nicholas, Thanks, I appreciate your help, that works. Any reason why the other url did not? JB
... View more
09-27-2018
03:49 PM
|
0
|
2
|
418
|
POST
|
Having an issue with routing and secured route service. I have a simple Objective-C app with one view and am using iOS_100_3 version of the sdk. In viewDidLoad I am basically doing the following. When I run this I get the following error from loadWithCompletion Error Domain=com.esri.arcgis.runtime.error Code=18 "Internal error" UserInfo={NSLocalizedFailureReason=Cannot get required value. Probably, invalid JSON., NSLocalizedDescription=Internal error, Additional Message=Cannot get required value. Probably, invalid JSON.} Using this same basic code but replacing the route url with https://sampleserver6.arcgisonline.com/arcgis/rest/services/NetworkAnalysis/SanDiego/NAServer/Route I do not see the above error, I get another error which is expected as the code is not complete. I feel it might be related to how I am authenticating with the route service, but am not sure as the error only tells me JSON might be invalid. Has anyone here seen this or have any suggestions? Thanks. NSURL *routeTaskUrl = [NSURL URLWithString:@"http://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/"]; self.routeTask = [[AGSRouteTask alloc] initWithURL:routeTaskUrl]; AGSCredential *cred = [AGSCredential credentialWithUser:@"xxxxxx" password:@"xxxxxx"]; [self.routeTask setCredential:cred]; [self.routeTask loadWithCompletion:^(NSError *error){ if(error) { NSLog(@"%", error.localizedDescription); } else if(self.routeTask.loadStatus == AGSLoadStatusLoaded) { NSLog(@"route task loaded"); [self.routeTask defaultRouteParametersWithCompletion:^(AGSRouteParameters * _Nullable routeParams, NSError * _Nullable error) { if(error) { NSLog(@"%", error.localizedDescription); } else { self.routeTaskParams = routeParams; [self.routeTask solveRouteWithParameters:self.routeTaskParams completion:^(AGSRouteResult * _Nullable routeResult, NSError * _Nullable error) { if(error) { NSLog(@"%", error.localizedDescription); } else { // do something with it } }]; } }]; } }];
... View more
09-27-2018
09:54 AM
|
0
|
5
|
674
|
POST
|
Could you please post the sample project you have created and memory leak results from Instruments? Regards, Nimesh This memory issue will be addressed in the next version of the api.
... View more
03-08-2012
10:41 AM
|
0
|
0
|
327
|
POST
|
When creating a simple map in a UIView controller I seem to be getting a memory leak when the map initializes. The leak according to Instruments is coming from the AGSSBJsonStreamParser init method. I am using ESRI's sample map: http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer iOs SDK Version 2.1 Once the map loads I can pan and zoom without further leaks. Now if I add geocoding I get the same leak (AGSSBJsonStreamParser) after each geocode session. The single leak at startup seems minor but when doing a considerable amount of geocoding the leaked memory starts to add up. Has anyone encountered this issue? Thanks.
... View more
03-06-2012
07:18 AM
|
0
|
2
|
1810
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|