POST
|
thanks for your reply nrjarecha, I tried to set the parameters manually but with no luck, the rout is not working on my map on localhost. but it worked on this sample server : http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Route and I can find routes in my application. I also tried to "Solve Route" on my localhost server itself, I set two stops, but it said the two stops are invalid or not defined, something like this. the route is working well on ArcMap, but when published on server, it's not. is there some parameters missing ? or may be there's some parameters should be defined for my country (Kuwait) ? thanks
... View more
05-22-2012
01:58 PM
|
0
|
0
|
318
|
POST
|
hello, I'm using the RoutingSample project, it's working with the default map in the project and I can get the routes between the point. the problem is when I read my own map, it fails on this code: [PHP] [self.routeTask retrieveDefaultRouteTaskParameters]; [/PHP] an alert view show this error at the very beginning: Failed to retrieve default route parameters the alert is in this function: [PHP] - (void)routeTask:(AGSRouteTask *)routeTask operation:(NSOperation *)op didFailToRetrieveDefaultRouteTaskParametersWithError:(NSError *)error { // Create an alert to let the user know the retrieval failed // Click Retry to attempt to retrieve the defaults again UIAlertView *av = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Failed to retrieve default route parameters" delegate:self cancelButtonTitle:@"Ok" otherButtonTitles:@"Retry",nil]; [av show]; [av release]; } [/PHP] so, how can I solve this problem ? if I want to set the parameters manually.. what the parameters should I write? thanks
... View more
05-19-2012
04:48 AM
|
0
|
4
|
2724
|
POST
|
thank you very much 😃 it worked 😉 I used this code : [PHP] NSURL *mapUrl = [NSURL URLWithString:@"http://localhost/arcgis/rest/services/whatever/MapServer"]; AGSDynamicMapServiceLayer* layer = [AGSDynamicMapServiceLayer dynamicMapServiceLayerWithURL:mapUrl]; [self.mapView addMapLayer:layer withName:@"anyName"]; [/PHP]
... View more
05-18-2012
05:57 PM
|
0
|
0
|
248
|
POST
|
hello, I have created a map using ArcGIS Desktop, then I published the map on ArcGIS Server on my localhost. the question is how can I read my map in Xcode ? for example how can I load this map in Xcode : http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StateCityHighway_USA/MapServer ? thanks
... View more
05-17-2012
01:58 PM
|
0
|
2
|
543
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|