|
POST
|
Yes, everything is in the "libArcGIS.a" and you must add it to your project. Along with that you must follow steps outlined in Setting up your XCode project. Regards, Nimesh
... View more
12-14-2011
08:12 AM
|
0
|
0
|
2628
|
|
POST
|
You have two options... 1. Force your geocoding result to return geometries in the map's spatial reference by setting the out spatial reference while geocoding. 2. Re-project your graphic's geometry to the base map's spatial reference before adding to the graphics layer. Regards, Nimesh
... View more
12-14-2011
06:56 AM
|
0
|
0
|
556
|
|
POST
|
You must also specify the -ObjC and -all_load linker flags in your project's 'Other Linker Flags' build setting. Do you have these set? Regards, Nimesh
... View more
12-14-2011
06:49 AM
|
0
|
0
|
2628
|
|
POST
|
Your code should be... AGSDynamicMapServiceLayer *dynLayer = (AGSDynamicMapServiceLayer *)dynamicLayerView.agsLayer;
NSMutableArray *visLayers = [NSMutableArray array];
// add some layers into visLayers
[visLayers addObject:[NSNumber numberWithInt:1]];
dynLayer.visibleLayers = visLayers; Hope this works. Regards, Nimesh
... View more
12-12-2011
07:23 AM
|
0
|
0
|
630
|
|
POST
|
Faizan, Answers to your questions.. #1 Yes, if you want to install developed application on the device. #2 You can select the options based on the requirement of the company. Are you intending to submit your application to the Apple App Store then select "iOS Developer Program". If you are intending to install application on selected companies devices then go for "iOS Enterprise Program". Here are the details... #3 ArcGIS for iOS SDK supports latest Xcode. So start with Xcode 4.2 or 4.2.1. Hope this helps! Regards, Nimesh
... View more
12-12-2011
07:16 AM
|
1
|
0
|
760
|
|
POST
|
No, you do not need to remove the layer and add it back in order to change the visibleLayers. Just setting the self.baseDynamicLayer.visibleLayers with desired visible layers is enough. Regards, Nimesh
... View more
12-08-2011
11:30 AM
|
0
|
0
|
810
|
|
POST
|
If possible, please attach a sample application demonstrating the issue. Regards, Nimesh
... View more
12-05-2011
07:45 AM
|
0
|
0
|
642
|
|
POST
|
Csaba, Your question is very much different than the original post in this thread. Hence, I would suggest creating a new thread. Since, you are creating a new feature. You must wait until it's successfully added to server and then only you can add attachment. Here are the steps you should follow... 1. Adopt AGSFeatureLayerEditingDelegate delegate. 2. Set self.featureLayer.editingDelegate = self; 3. Add features with [self.featureLayer addFeatures:array]; and wait for the result (success or failure) in the editing delegate methods. 4. If successes, the result is returned in featureLayer:operation:didFeatureEditsWithResults: method. You'll get a new object id. 5. Now, you can do following and post the attachment. AGSGraphic* feature = [featureLayer lookupFeatureWithObjectId:<newObjectId>]; AGSAttachmentManager* attMgr = [featureLayer attachmentManagerForFeature: feature]; Hope this helps! Regards, Nimesh Regards, Nimesh
... View more
12-05-2011
07:39 AM
|
0
|
0
|
1887
|
|
POST
|
Tariq, You should look at Online-Offline Editing Sample. This is answer to your #1 and #2 points. #3 All Tasks (Query, Search etc.) are not designed to work in offline mode. Hence, it's not possible at this time. Regards, Nimesh
... View more
12-05-2011
07:24 AM
|
0
|
0
|
772
|
|
POST
|
Paul, The simplest thing in your case to do is to change the symbol of the selected graphics so they can look different (highlited). Regards, Nimesh
... View more
12-02-2011
12:21 PM
|
0
|
0
|
2293
|
|
POST
|
There is no legend available for one of the layer in a map service. If you are loading just one layer from a map service then it must be an AGSFeatureLayer, correct? If yes, you should get the swatch from the renderer symbol. See below code... CGSize swatchSize = CGSizeMake(20,20); //check the renderer of feature layer if ([self.featureLayer.renderer isKindOfClass:[AGSUniqueValueRenderer class]]) { AGSUniqueValueRenderer *uniqueValueRenderer = (AGSUniqueValueRenderer*)self.featureLayer.renderer; //you can loop through all symbols and get swatchs AGSUniqueValue *uniqueValue = [uniqueValueRenderer.uniqueValues objectAtIndex:0]; UIImage *image = [uniqueValue.symbol swatchForGeometryType:self.featureLayer.geometryType size:swatchSize]; } Please let me know if you need any further help! Regards, Nimesh
... View more
12-01-2011
11:54 AM
|
0
|
0
|
490
|
|
POST
|
You really need to understand few things about wrap around and normalizing geometries. Wrap around: There are two ways you can reach to Auckland from Los Angeles. One by crossing the date line (from [-118.2436849,34.0522342] to [-185.233,-36.8667]) and another without crossing the date line (from [-118.2436849,34.0522342] to [174.767,-36.8667]). Without crossing the date line: You don't need the warp around since the geometry is not crossing the date line. See attached first image. By crossing the date line: If wrap around is not enabled then see how geometry looks (see 2nd image) and see 3rd image, how geometry looks when warp around is enabled. Normalizing Geometries: What normalizeCentralMeridianOfGeometry does? If the geometry is outside -180 and +180 then it cuts the geometry into parts and folds into -180 and +180. You do not need to USE this method if you are not intending to store these geometry in the geodatabase (either personal, file or see). If you just want to display them on the map then wrap around is enough. For more information about wrap-around, refer to Wrap Around documentation. I also added a switch to enable/disable wrap around so you can see the effect. See modifications I made in the your attached project. One last thing is when trying to show the mapview's spatial reference, I alway get a null back. This is because you are trying to check it too soon. You are adding the base layer in the viewDidLoad method and by the time you check the spatial reference of the mapView, the map is not loaded yet. You should check it in the mapViewDidLoad delegate method. See modifications in attached project. One more thing, you are converting your WGS 1984 (4326) geometries into Web Mercator (102100) with your own function called lonLat2Mercator. The calculation seems to be incorrect. Please use the function AGSGeometryGeographicToWebMercator available in the SDK for the same. See code in attached project. Hope, I made all points clear. Please let me know if you still have any question. Regards, Nimesh
... View more
12-01-2011
09:46 AM
|
0
|
0
|
6440
|
|
POST
|
Alberto, Could you please provide more information? Which special chars fails the GET request? Regards, Nimesh
... View more
11-23-2011
09:00 AM
|
0
|
0
|
778
|
| 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
|