POST
|
I'm using identifyLayer which is targeted at the AGSArcGISMapImageLayer. It is added as one layer, but it contains several group layers (like I explained earlier). I think that is slowing the identifying process down. Also I tried removing the basemap to see if it would change anything, but the result is still the same. In the past versions of the SDK, we used identifyTask which allowed us to identify features in a much faster way. Is there a similar way to use the identify method in the 100.x version?
... View more
02-05-2018
12:34 AM
|
0
|
0
|
840
|
POST
|
Thanks for your input Mark. I got the identifyLayer to work on the AGSArcGISMapImageLayer, but it's very slow. It takes about 30 seconds to identify the features at the chosen screenPoint. This is too slow. I noticed that changing the returnsPopupsOnly attribute from NO to YES makes the reaction time a lot faster, but then no features are selected. Is there any way to speed up this process? As an alternative I would add all the feature layers that contain GeoElements to an AGSServiceFeatureTable. But to do this I would need to determine all the sublayers (including nested sublayers) in the map service. The mapservice is structured like this: TopLayer (0) SubLayer (1) Sublayer (2) FeatureLayer (3) FeatureLayer (4) SubLayer (5) FeatureLayer (6) SubLayer (7) Sublayer (8) FeatureLayer (9) SubLayer(10) FeatureLayer (11) Is there a way I could get a flat list of layerID's 1 to 11 using a AGSArcGISMapImageLayer (or any other type of layer object)?
... View more
02-02-2018
04:26 AM
|
0
|
2
|
840
|
POST
|
I made some progress... I tried adding the AGSArcGISMapImageLayer, which shows all the layers just like we want. But we can't identify the GeoElements using identifyLayer() (and calling the method is also very slow). The GeoElements array shows up empty every time a feature is selected. So I went back to using AGSFeatureServiceTable and AGSFeatureLayer. I can add the individual (feature) layers in a feature service table and the features can also be identified. But I can't get the layers to be added all at once. ( like a AGSArcGISMapImageLayer). Is there even a possibility to this using AGSFeatureServiceTable? The layers in the MapService are at different layer levels (group layers and feature layers -> total of 156), so I can't really add all the layers manually.
... View more
01-31-2018
08:16 AM
|
0
|
4
|
840
|
POST
|
Thanks for your reaction Nicholas. Adding the layer index did not solve the issue. The mapserver has several layers and sublayers, which all need to be visible. So I tried adding the top layer (index 0), hoping all the sublayers would be displayed, but it did not work. Also, I called the loadWithCompletion() and apparently I'm getting an "Invalid JSON" error. It says this in the release notes: Loading a ServiceFeatureTable causes an invalid JSON error when the service contains a reserved field name, such as one that starts with "gdb_". I think this does not apply in our situation. You can find the layer's JSON in the attachment.
... View more
01-31-2018
01:11 AM
|
0
|
6
|
840
|
POST
|
Hi, I'm trying to display a feature layer using a feature table, so I can identify the features when clicked on. This is my code: AGSCredential *cred = [[AGSCredential alloc] initWithUser:@"..." password:@"..."]; AGSServiceFeatureTable *featureTable = [AGSServiceFeatureTable serviceFeatureTableWithURL:[NSURL URLWithString:@"https://arcgis.../MapServer"]]; featureTable.credential = cred; AGSFeatureLayer *featureLayer = [[AGSFeatureLayer alloc] initWithFeatureTable:featureTable]; [map.operationalLayers addObject:featureLayer]; Is there anything wrong with this code? I also tried AGSArcGISMapImageLayer as an alternative (which works), but the features can't be identified with this method. Any help is appreciated!
... View more
01-29-2018
08:53 AM
|
0
|
8
|
1211
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|