Hello, I am using ArcGIS Runtime API for iOS 100.11 version, but 10.2.4 was used before the project. I am modifying the code of the project, and I don't know how to modify the wrong content of some codes in the project. I hope you can help me solve it.
Very similar question was answered here.
There is a document here describing migration changes from 10.2.x to 100.x.
The home page for the iOS runtime SDK provides many samples and sample code. Also the API reference is available.
Per the screen shots you provided:
To add a layer to a map view, you add the layer to an AGSMap through the operationalLayers property and then assign the AGSMap to your AGSMapView.
The code now would look something more like:
AGSMap* map = [[AGSMap alloc]init]; [map.operationalLayers addObject:TianDyTuLyr]; [map.operationalLayers addObject:TianDyTuLyr_Anno]; self.mapView.map = map;
Alternatively, you can add your layers to the AGSMap.basemap if that better suits your intention.
Hello, I added layers according to the method you said, but the map could not be displayed on the APP. Could you please check the reason?
Hello, I am trying to draw the trace, I am trying to add the AGSPolylineBuilder object through the AGSGraphic, but it crashes here,as shown in my screenshot. Please kindly see how to add the AGSPolylineBuilder object to draw the trace.
You are passing an `AGSPolylineBuilder *` to a function that takes an `AGSGeometry *`. You need to call `toGeometry` on your builder to get a geometry that you can pass to the function.
First, thank you for your feedback. I have another problem, on the map display, I want to show the track, but only the mark points of AGSPictureMarkerSymbol are shown here, and the words I wrote AGSSimpleLineSymbol are not shown on the map. Please help to check whether there is a problem with the code?
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.