|
POST
|
It looks like the inspectionLayer will not have had a chance to reach out to the REST endpoint to interrogate whether it can handle edits yet or not. The inspectionLayer.loaded property will be false, and you can't use the layer until it's true. Either instantiate the AGSFeatureLayer earlier in your app (perhaps on viewDidLoad) and store it as a property, or else set its delegate property and wait to receive the AGSLayerDelegate::layerDidLoad message before inspecting the properties or saving the feature. I recommend the former. It's a lightweight object and fine to keep around like that. As some background: To avoid blocking the main thread, the action of reaching out to the REST endpoint is queued up and requires the run loop to free up before the round-trip HTTP request happens. This won't happen anywhere between lines 2 and 24 in your sample (the "AGSFeatureLayer::loaded" property will be false). This is true of all components in the runtime that make potentially lengthy URL requests (tasks, layers, portals, etc.).
... View more
09-03-2015
05:55 AM
|
0
|
1
|
877
|
|
POST
|
Hey Rob, FYI: definitionExpression was added to AGSFeatureTableLayer in 10.2.5 of the ArcGIS Runtime SDK for iOS. Release notes for 10.2.5—ArcGIS Runtime SDK for iOS Cheers, Nick.
... View more
09-02-2015
07:10 AM
|
2
|
1
|
1392
|
|
POST
|
Hey Armand van der Zwan, Did my reply above fix your problem? If so, could you mark it as answered so others can find this please? Cheers! Nick.
... View more
08-20-2015
05:36 AM
|
0
|
0
|
377
|
|
POST
|
Hey Armand van der Zwan, Take a look at lastChangeFromInteraction on AGSMapView (it's inherited from AGSMapViewBase). When you receive the AGSMapViewDidEndPanningNotification or AGSMapViewDidEndZoomingNotification notification, check that and it should tell you what you want. Hope that helps, Nick.
... View more
08-13-2015
09:14 AM
|
1
|
0
|
377
|
|
POST
|
Hey Joshua, That's great. I just tested this and yeah, my apps are working again in Beta 4. Note that in the app I'm working on I had to modify my info.plist to allow arbitrary loads for the appropriate target(s): (For more details, see Networking with NSURLSession - WWDC 2015 - Videos - Apple Developer) That's way too broad, but I just wanted get moving again Thanks for posting the update! Nick.
... View more
07-21-2015
03:32 PM
|
0
|
1
|
1453
|
|
POST
|
Good to know. I'll pass that on to the team, thanks.
... View more
07-20-2015
01:54 PM
|
0
|
0
|
1453
|
|
POST
|
Does this happen in the simulator or just on a device? We're aware of the on-device issue and are investigating. My recommendation from my own experience, for now, is to revert to iOS 9 Beta 2 and Xcode 7 beta 2 if you're using a device. Nick
... View more
07-19-2015
11:20 PM
|
0
|
3
|
1453
|
|
POST
|
FYI, this was fixed in last night's update. Loren Mueller, I suggest you take another look and see if your issue has been resolved. From your description, I think it should be.
... View more
07-14-2015
08:51 AM
|
0
|
0
|
2173
|
|
POST
|
Hi Loren Mueller. Apologies that I missed your post. It could well be. I suggest that you try again after this release goes live. Cheers, Nick.
... View more
07-13-2015
01:40 PM
|
0
|
0
|
2173
|
|
POST
|
Yes, Anthony Picciano, the release was delayed a couple of days. Target is to release tomorrow.
... View more
07-13-2015
01:38 PM
|
1
|
0
|
2173
|
|
POST
|
Hi Lip Hin Wee, I've checked in an update that allows you to use an AGSGraphicsLayer as a data source. Hope this helps! Nick.
... View more
04-09-2015
04:40 PM
|
0
|
0
|
2051
|
|
POST
|
Hi Anthony. Thanks for following up. I found out today that the bug will be fixed at the next release of the Geocoder Service, which is planned for July. Cheers, Nick.
... View more
04-01-2015
08:08 PM
|
0
|
5
|
2173
|
|
POST
|
Hi Savio, For me, the cafe appears to be in the right place. So given that, I think your question is about Spatial References. -1024499.0043,4678426.5468 (x,y in meters) is in Web Mercator Spatial Reference (usually known as WKID 102100 or 3857, but 102113 is an older identifier). This translates to 38.6974539920001,-9.20323083499994 as lat,lon. You can do one of a few things: Use the Runtime SDKs (in iOS, an AGSFeatureLayer added to an AGSMapView) to handle them. When you create a layer with the service URL and add it to the map, the Runtime will ensure things are returned from the server appropriately for direct display on the map. This is by far the simplest approach. If you're querying the REST service directly, Specify the outSR in the service query request: http://digc.cm-lisboa.pt/DIGC/rest/services/OpenDataLX/LxPOI/MapServer/116/query?text=&geometry=&geometryType=esriGeomet… (see also here for an HTML interface) Use the runtime GeometryEngine class to project the point from WKID 102113 to WKID 4326. Do your own maths to translate the Web Mercator (102113) coordinate -1024499.0043,4678426.5468 to the Lat/Lon (4326) coordinate -9.20323083499994,38.6974539920001. There are plenty of algorithms around, but I don't recommend this approach. So, you don't have to work with the Esri SDKs and APIs to use the data as it comes out of the service, but they can make your life a lot easier if you do. Does this help? Nick.
... View more
03-26-2015
11:38 AM
|
0
|
0
|
674
|
|
POST
|
Hi Furkan Ozoglu, Are you saying that you're not sure how to get hold of the layer once your app has started? Or has Al Pascual helped resolve your issue? Cheers, Nick.
... View more
03-26-2015
09:29 AM
|
0
|
0
|
1072
|
|
POST
|
Thanks for the write-up, Anthony. This may be a bug. We're looking into it and will post something when we know more. Nick.
... View more
03-25-2015
11:26 AM
|
0
|
7
|
2173
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-05-2025 10:52 AM | |
| 1 | 11-04-2025 08:55 AM | |
| 1 | 11-04-2025 08:38 AM | |
| 1 | 11-01-2025 03:25 PM | |
| 1 | 10-29-2025 10:28 AM |