|
POST
|
1. Any way for web map to treat my shapefile as a Feature Layer? The shape file added to the web map is being treated as feature collection (ultimately, it is a feature layer but in this case all features resided in the web map and not in the server like a feature layer from a feature server). 2. Is it necessary for web map to be based on a Feature Layer from a Feature Server for AGSPopupInfo and AGSPopupFieldInfo to be configured properly? No, you can configure popupInfo for the layer based on a shape file (feature collection). You are not able to find the popup info because you are looking at a wrong place. Just change your code like below and you'll see what you want to 🙂 for (AGSWebMapLayerInfo *li in webMap.operationalLayers)
{
NSLog(@"title %@; layerId %@; layerType %@; mode %d; layers count %d", li.title, li.layerId, li.layerType, li.mode, [li.layers count]);
if(li.featureCollection) {
AGSWebMapFeatureCollection *wmfc = li.featureCollection;
for (AGSWebMapLayerInfo *fcli in wmfc.layers)
{
AGSPopupInfo *pi = fcli.popupInfo;
NSLog(@"title %@; description %@; allowEdit %@", pi.title, pi.description, pi.allowEdit);
for (AGSPopupFieldInfo *fi in pi.fieldInfos)
{
NSLog(@"fieldName %@", fi.fieldName);
}
}
}
} Regards, Nimesh
... View more
04-09-2012
09:41 AM
|
0
|
0
|
2181
|
|
POST
|
If you are using this (http://tasks.arcgis.com/ArcGIS/rest/services/WorldLocator/GeocodeServer) locator service to find addresses then you don't need to project the result geometries. Just use AGSLocator's locationsForAddress:returnFields:outSpatialReference: method and set the desired outSpatialReference. Hope this helps! Regards, Nimesh
... View more
04-09-2012
08:47 AM
|
0
|
0
|
2471
|
|
POST
|
Great! Glad to know that you got it working! 🙂 Regards, Nimesh
... View more
04-06-2012
03:52 PM
|
0
|
0
|
2953
|
|
POST
|
Steve, Just add a following code line in start of identifyTask::didExecuteWithIdentifyResults and you will see multiple results (see message on console). The sample shows callout and attributes for the first result only. You'll have to modify sample if you want to show attributes of all the results. NSLog(@"results: %@",results); Regards, Nimesh
... View more
04-06-2012
11:15 AM
|
0
|
0
|
2953
|
|
POST
|
Your code looks correct. Here is the sample... 1. Download Identify Task Sample. 2. Comment out code line in viewDidLoad as shown below. // set the visible layers on the layer //dynamicLayer.visibleLayers = [NSArray arrayWithObjects:[NSNumber numberWithInt:5], nil]; 3. Change code line as below in mapView::didClickAtPoint from one layerIds to multiple. //self.identifyParams.layerIds = [NSArray arrayWithObjects:[NSNumber numberWithInt:5], nil]; self.identifyParams.layerIds = [NSArray arrayWithObjects:[NSNumber numberWithInt:1],[NSNumber numberWithInt:3],[NSNumber numberWithInt:4],[NSNumber numberWithInt:5], nil]; 4. Test the sample. You'll see multiple results. Hope this helps! Regards, Nimesh
... View more
04-06-2012
08:33 AM
|
0
|
0
|
2953
|
|
POST
|
Yes, you can use multiple Identify Tasks. When you execute task, it returns, NSOperation. Also, when task completes successfully or failed, delegate method returns NSOperation. You can match both NSOperation to determine which task's result it is. Hope this helps! Regards, Nimesh
... View more
04-05-2012
10:14 AM
|
0
|
0
|
762
|
|
POST
|
What all layers are available in the AGSWebMap? Regards, Nimesh
... View more
04-05-2012
09:42 AM
|
0
|
0
|
2181
|
|
POST
|
You can get the geometry of the selected feature and use AGSMapView's zoomToGeometry method to zoom to it. Regards, Nimesh
... View more
04-05-2012
09:41 AM
|
0
|
0
|
1412
|
|
POST
|
Did you follow all the steps outlined in the Migrating existing applications from v2.1? Please try adding ArcGIS.framework to the project. Regards, Nimesh
... View more
04-05-2012
09:37 AM
|
0
|
0
|
5798
|
|
POST
|
You did right thing of choosing iOS project type. The ArcGIS project type shouldn't work as Apple does not support the project templates. Those ArcGIS type project templates will be removed in the next version of the SDK. Please feel free to post a question if you find any problem in setting up a project. Regards, Nimesh
... View more
04-05-2012
09:30 AM
|
0
|
0
|
1832
|
|
POST
|
Did you update the 'Other Linker Flags' to '-ObjC -all_load -framework ArcGIS'? Regards, Nimesh
... View more
04-05-2012
09:27 AM
|
0
|
0
|
5798
|
|
POST
|
Okay..let's make MapViewDemo up and running first and then we'll look into your project. 1. Did install of v2.2 successfully completed? 2. Do you see ArcGIS.framework and Samples folder under ${HOME}/Library/SDKs/ArcGIS? 3. You mentioned that the Framework Search Paths in build settings of MapViewDemo is $HOME/Library/SDKs. It must be either ${HOME}/Library/SDKs/** or ${HOME}/Library/SDKs/ArcGIS. 4. Do you see 'Other Linker Flags' set to -ObjC -all_load -framework ArcGIS -lstdc++? Regards, Nimesh
... View more
04-04-2012
02:22 PM
|
1
|
0
|
8030
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-18-2024 12:33 PM | |
| 1 | 03-12-2024 08:54 AM | |
| 1 | 09-28-2023 08:19 AM | |
| 2 | 07-28-2023 08:07 AM | |
| 1 | 06-27-2013 10:42 AM |
| Online Status |
Offline
|
| Date Last Visited |
03-30-2026
10:15 AM
|