|
POST
|
I had a look at your code. You are on the right track, just missing a couple of things. 1. Create the `webmap` property as an instance variable, to keep it in memory and in order to execute the delegate methods. 2. Add the following delegate method, to catch errors while loading web map -(void)webMap:(AGSWebMap *)webMap didFailToLoadWithError:(NSError *)error The web map you are using is not loading for some reason (may be, credential is required). Are you able to open the map online?
... View more
11-18-2015
09:25 AM
|
0
|
0
|
806
|
|
POST
|
Did you try using the `mapLayers` property on `AGSMapView`? Once you open the web map into the map view, all the layers in the web map should be reflected in the `mapLayers` property. You can go from there, changing the visibility of the individual layer.
... View more
11-17-2015
04:24 PM
|
0
|
3
|
876
|
|
POST
|
A better approach might be as follows: -(void)identifyTask:(AGSIdentifyTask *)identifyTask operation:(NSOperation *)op didExecuteWithIdentifyResults:(NSArray *)results { //instead of using the flag //contentPresent = NO; //call the method to alert the user [self alertUser]; NSLog(@"Results.count: %li", results.count); if (results.count > 0) { //instead of this //contentPresent = YES; //call a different method or add code inline, to process the results [self processResults:results]; } } -(void)alertUser { //alert the user for no results } -(void)processResults:(NSArray*)results { //process the results }
... View more
11-17-2015
04:02 PM
|
0
|
0
|
468
|
|
POST
|
I noticed you updated the post to `Assumed Answered`. For some one else having the same problem, you will have to conform to the App Transport Security requirements from Apple (iOS 9+).
... View more
10-13-2015
03:55 PM
|
0
|
0
|
504
|
|
POST
|
I just replaced the (duoLat, duoLon) in your code with (0, 0) and it worked for me. Can you see the graphic on the map?
... View more
10-07-2015
10:46 AM
|
0
|
0
|
1122
|
|
POST
|
Where are you calling the `showCalloutAtPoint` method from? Try doing it from the `mapViewDidLoad` delegate.
... View more
09-29-2015
10:13 AM
|
0
|
2
|
1122
|
|
POST
|
You can use a combination of the following methods on `AGSMapViewTouchDelegate`. (void) - mapView:didTapAndHoldAtPoint:mapPoint:graphics: use this get the tapped graphic (void) - mapView:didMoveTapAndHoldAtPoint:mapPoint:graphics: use this to update the graphic location to mapPoint (void) - mapView:didEndTapAndHoldAtPoint:mapPoint:graphics: use this for clean up
... View more
09-23-2015
10:54 AM
|
2
|
1
|
579
|
|
POST
|
Can you double check the spatial reference of the map view? This usually happens if the the spatial reference of the envelope is different from the map view. Also, you should look into this sample, it shows you how to use `AGSLocationDisplay` to achieve the same result.
... View more
09-21-2015
09:58 AM
|
0
|
0
|
595
|
|
POST
|
We are able to reproduce the issue on our end and will investigate it. Thanks for reporting the issue.
... View more
09-11-2015
10:36 AM
|
0
|
5
|
1456
|
|
POST
|
What version of the sample are you using? Swift or ObjC? And can you share the backtrace or log of the error you are getting on the crash?
... View more
09-08-2015
03:53 PM
|
0
|
0
|
1456
|
|
POST
|
AGSField is an object and not a dictionary. So if you access either of the 53 objects, cast it to AGSField and print the `name` property you should see the right values. Refer to AGSField object. This is what I got: (lldb) po ((AGSField*)((AGSFeatureLayer*)layer).fields[0]).name OBJECTID
... View more
08-14-2015
01:56 PM
|
3
|
1
|
2165
|
|
POST
|
AGSFeatureLayer has a property `fields` you can use to get the fields in the right order. Simply create a feature layer using the URL and inside layerDidLoad, you should have the fields in the right order. Let me know if this helps. Gagan
... View more
08-14-2015
12:54 PM
|
0
|
4
|
2165
|
|
POST
|
One workaround I can think of is creating an array of ordered keys : ["FID", "Shape", "APN", .... ]. Then looping through the array and getting the value corresponding to each key.
... View more
08-12-2015
11:24 AM
|
0
|
1
|
2165
|
|
POST
|
Is that the list of attributes on a feature/graphic returned by identifyTask? If yes, then since `allAttributes` property is an `NSDictionary`, you cannot preserve the order. Otherwise, can you elaborate on how you are accessing these properties?
... View more
08-12-2015
10:56 AM
|
0
|
3
|
2165
|
|
POST
|
You cannot download the dataset, but you can create your own datasets and test. This may be helpful : ArcGIS Help 10.1
... View more
07-29-2015
03:33 PM
|
0
|
0
|
512
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2015 01:56 PM | |
| 1 | 03-19-2015 02:26 PM | |
| 1 | 08-20-2014 01:44 PM | |
| 1 | 02-18-2016 11:48 AM | |
| 1 | 04-28-2015 01:45 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:24 AM
|