|
POST
|
Hi. Can we just confirm that you're using a transportation network dataset packaged up in a mobile map package (MMPK)? That error usually means that the network dataset can't locate a street edge nearby. If you published the MMPK yourself, are you sure the network dataset was published for the area you're routing in? If you're just using the sample with your own mobile map for display only (and not for providing its own network dataset), then be aware that sample's network dataset only covers the San Diego area. For global coverage, you should use the world routing service (we don't use that in samples because it consumes credits). Does that help?
... View more
12-08-2020
10:30 PM
|
0
|
0
|
1427
|
|
POST
|
That all looks OK. I don't think this will help, but can you read the expiry date once the license has been set? I know the enum indicates that it's still valid, but want to make sure there's agreement there. In your second snippet, I noticed the error variable is err but that you then output [error localizedDescription]. I'm guessing that's just a typo, but can you double-check that you're reading the right error message?
... View more
12-02-2020
12:11 PM
|
0
|
1
|
1038
|
|
POST
|
I'm afraid that doesn't really give us anything to work with. The code you provide is accessing a web map, and changing the basemap to be the standard Imagery With Labels basemap. setViewpointRotation() will only affect the AGSMapView rotation and will not change the scale. When you take a map offline, you use an AGSOfflineMapTask. From that you create default parameters for a geographic area you want to take offline. You then create an AGSGenerateOfflineMapJob and start it. You should check the code that's setting the parameters to see what, if anything, is happening to the geometry that's being passed in. If you're getting the whole world downloaded, it could be that the geometry isn't being set, so is there some way that setting the viewpoint rotation to 0 is clearing out some geometry property that is being used to track what to download?
... View more
11-18-2020
01:28 PM
|
0
|
0
|
4728
|
|
POST
|
I am using the rotateEnabled property and setViewpointRotation(0, completion: nil) and the result is a default offline map of San Francisco which requires downloading the entire world map. Can you provide more context please? Is this an application you have built from scratch or is it based off a sample or example app? I am not sure what the screenshot is that you provided (it doesn't look like San Francisco).
... View more
11-18-2020
07:56 AM
|
0
|
2
|
4744
|
|
POST
|
Hi @NaomiSchettini, The method allows you to specify any rotation (for example, if you are following a route, you may want the map to always point in the direction you are moving). If you want to reset it to north, just pass in 0. However, if you want to prevent the user rotating the map at all, you can look at the interactionOptions property on AGSMapView. This is an AGSMapViewInteractionOptions object, and you can set the rotateEnabled property to false. Hope this helps.
... View more
11-18-2020
07:38 AM
|
0
|
4
|
4749
|
|
POST
|
Hi @LeoDeng. iOS 14 was released after we released Runtime 100.9, but we did test with the iOS 14 betas and the Runtime does work properly. In short: iOS 14 and Xcode 12 are supported with 100.9. Can you share more specifics about the issue you're seeing please?
... View more
11-17-2020
07:47 AM
|
1
|
1
|
1474
|
|
POST
|
Thanks. If the completion block is not being called (sorry - I missed this in your last reply), it certainly seems the AGSServiceFeatureTable must be getting deallocated and going out of scope. You should either get a result or an error. Is the view controller being dismissed while the query is in process? Could you provide a simple reproducer app so we can look into it? The URL could be helpful but at this point I think it's likely this could be reproducible with any service. BTW, for the c++ exception, we'd want to see the stack trace.
... View more
11-05-2020
10:28 AM
|
0
|
2
|
4269
|
|
POST
|
In that case… is the error you get back in the callback the same as the one you see in the console? Have you tried setting the C++ breakpoint as suggested in the error message? Please explain more fully what your view controller navigation is doing. You say you dismiss the view controller. When you push it again, is it being reconstructed or reused? Is there a MapView in this workflow, or are you simply creating the ServiceFeatureTable and holding on to that? If you recreate the service feature table each time your view controller is pushed, does that help? An you explain why you're explicitly setting the timeout on the request configuration? I suspect that's actually not doing anything since you haven't explicitly set a request configuration object on there. By default Runtime uses the iOS defaults for these things. I don't think this will have anything to do with the issue you're seeing, but I'd like to understand why the default wasn't working for you. Also, as asked before, are you able to share the feature service URL?
... View more
11-05-2020
09:09 AM
|
0
|
4
|
4269
|
|
POST
|
Thanks. Sounds like some in-memory feature table backing store is being deallocated when you dismiss the view controller. Can you add some error checking into your callback and see what the "error" provides? It might just reflect what you're seeing in the console, but you should be checking that at code level as a best practice anyway.
... View more
11-05-2020
08:22 AM
|
0
|
6
|
4269
|
|
POST
|
Hi Simon. 1. Setting the license key isn't enough here? Quite so. The license enables (or disables) functionality in Runtime, but does not impact authentication. That's where the username/password or other type of credential comes in. That's what determines whether and how you can access a resource. 2. Using a free developer account is okay for a production release of the app where a significant amount of users could be downloading the basemap on a semi-regular basis? Yes, it is. But if you're earning any revenue off the app (through App Store sales or ads, for example) then you need to make sure you have a paid Builder Plan for what we call a commercial deployment. If it's a free app, you can stick with the free Essentials Plan. See Deploy your app—ArcGIS Runtime SDK for iOS | ArcGIS for Developers for more info. Back to authentication: If you're just authenticating to access the basemap services, you can use App Logins (Client ID + Client Secret). In fact, you should. It's something of an anti pattern to embed your username and password into the app. The short of it is you create an Application at ArcGIS for Developers, and that gives you a ClientID + Client Secret. You can use those to get a Token from ArcGIS Online, and that can be used to download the Basemaps without ever prompting the user for a login. The AuthenticationManager can make this seamless (see the Gist below). See these resources for some more info: Implementing App Login | ArcGIS for Developers App ID (swift codable) · GitHub Access the ArcGIS platform—ArcGIS Runtime SDK for iOS | ArcGIS for Developers Secret Management on iOS - NSHipster (definitely worth a read before you embed stuff in your app!). I have also set the credential on the AGSPortal Interesting. I'll run that past some folks on the offline team here and see if that's expected. It's quite possible that it is and I've just made an assumption I shouldn't have!
... View more
11-05-2020
08:16 AM
|
0
|
1
|
2673
|
|
POST
|
Or, I wonder if the featureTable is going out of scope before the queryFeatures() call can return. Are you seeing the error in the console or is that actually being returned to the completion block? Try making featureTable an instance variable/property on the class.
... View more
11-04-2020
02:51 PM
|
0
|
0
|
4269
|
|
POST
|
Can you share the layer URL? Is it publicly accessible for us to test against?
... View more
11-04-2020
02:48 PM
|
0
|
1
|
4269
|
|
POST
|
That error is saying that you have not provided credentials to download the basemap. To download Esri basemaps you need to provide a login. You can provide a free developer account login if you need to. When you create the AGSGenerateOfflineMapJob, you can provide a AGSCredential on the credential property. Hope that helps.
... View more
11-04-2020
02:45 PM
|
0
|
3
|
2673
|
|
POST
|
I'm not really sure what the Learn account is. Is it this? If your login through the Learn account gives you Editor, Field Worker, Creator, or a GIS Professional type, that'll be enough to get you a Basic license when you log in and license the Runtime as described here. But if you are just doing some R&D and developing (rather than deploying an app into production) then you can just not license the app at all and it'll run in development mode. This will display a watermark on any map view, but you can try out all the Runtime APIs. Does that help?
... View more
11-04-2020
08:33 AM
|
0
|
1
|
2579
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 05-14-2026 07:07 AM | |
| 2 | 04-30-2026 10:59 AM | |
| 4 | 04-22-2026 08:07 AM | |
| 1 | 01-29-2026 09:39 AM | |
| 1 | 12-17-2025 10:12 AM |