Select to view content in your preferred language

iOS Code migration 10.25 to 100.4 with ArcGIS-Runtime-SDK-iOS

1377
3
Jump to solution
06-08-2021 10:13 PM
SaravananNallamuthu
New Contributor

Hi Team,

Currently we are using ArcGIS Run Time SDK 10.2.5 through cocoa pod. We have to update with latest version. If we update latest version getting more issues based on versions. We mostly tried to resolve these issues, but can not resolve and can not get migration document also. Please provide solution. Thank you.

Please refer the fi

 

 

 

0 Kudos
1 Solution

Accepted Solutions
RyanOlson1
Esri Contributor

There is a document here describing changes from 10.2.x to 100.x. The latest version is 100.11.1 (not 100.4).

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:

AGSGraphicsLayer is now AGSGraphicsOverlay

AGSMapViewTouchDelegate is now AGSGeoViewTouchDelegate

AGSGeometryEngine - there is no more shared "singleton" instance. All methods are now just static (class methods).

wgs84SpatialReference is now just WGS84

pictureMarkerSymbolWithImageNamed is now just pictureMarkerSymbolWithImage (pass in a UIImage that you create with a name)

To add graphics to a previous graphics layer, you now go through the AGSGraphicsOverlay.graphics NSMutableArray

To add a graphics layer to a map, you use AGSMapView.graphicsOverlays

to center a map at a point, you use the AGSMapView.setViewpoint methods.

 

 

 

View solution in original post

3 Replies
RyanOlson1
Esri Contributor

There is a document here describing changes from 10.2.x to 100.x. The latest version is 100.11.1 (not 100.4).

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:

AGSGraphicsLayer is now AGSGraphicsOverlay

AGSMapViewTouchDelegate is now AGSGeoViewTouchDelegate

AGSGeometryEngine - there is no more shared "singleton" instance. All methods are now just static (class methods).

wgs84SpatialReference is now just WGS84

pictureMarkerSymbolWithImageNamed is now just pictureMarkerSymbolWithImage (pass in a UIImage that you create with a name)

To add graphics to a previous graphics layer, you now go through the AGSGraphicsOverlay.graphics NSMutableArray

To add a graphics layer to a map, you use AGSMapView.graphicsOverlays

to center a map at a point, you use the AGSMapView.setViewpoint methods.

 

 

 

SaravananNallamuthu
New Contributor

Thank you @RyanOlson1. Please give more details. If i update 10.2.X to 100.X getting 100+ issues.

Thank you... 

0 Kudos
MichaelDavis3
Frequent Contributor

The 10.2.x to 100.x transition is large enough that in some cases it is more efficient to just rebuild the app from a clean slate.  For cases where that wasn't possible for us we were averaging 60-80 hours to get everything converted over.  The largest shift for us (with Objective C) was the change to completion blocks for loading feature tables and geodatabses.

0 Kudos