|
POST
|
Hi Nimesh, Uploaded a new Log1.md file. As instructed, I hit the Skip five times and each time the dialog disappeared and came back very quickly. Checked the log file and there are a few 403 Request Forbidden errors. Thank you very much for your help. Regards, Shimin
... View more
10-12-2021
05:36 PM
|
0
|
3
|
2046
|
|
POST
|
Hi Nimesh, Have uploaded the Log.md file. Many thanks for your help! Regards, Shimin
... View more
10-12-2021
04:30 PM
|
0
|
5
|
2052
|
|
POST
|
Hi Nimesh, Yes I'm still able to reproduce the issue with the same repro project. Loading layers is ok first time tapping the Load Feature Layers button. As soon as the layers are fully loaded, tapping the button second time the credential dialog box pops up. Please see the attached images. Thank you for your help. Regards, Shimin
... View more
10-11-2021
06:39 PM
|
0
|
7
|
3598
|
|
POST
|
Hi Nimesh, Sorry the feature service was behind a geoblocking. The geoblocking has now been disabled temporarily. Could you please have another go? Thanks, Shimin
... View more
10-10-2021
04:01 PM
|
0
|
9
|
3617
|
|
POST
|
Hi Nimesh, Have uploaded the files to the site as instructed. However, the uploading failed many times due to a hung Ajax request. Looked like the following uploads were appending to the previous failed uploads. If the file is somehow corrupted please provide a mailbox I'll send a Dropbox link to download from Dropbox. Thanks a lot for your help. Cheers, Shimin
... View more
10-07-2021
03:43 PM
|
0
|
11
|
3651
|
|
POST
|
Hi Nimesh, I created a reproducible Xcode project which is about 400 mb after zip. How can I send it to you? Thanks, Shimin
... View more
10-06-2021
09:56 PM
|
0
|
13
|
3663
|
|
POST
|
Further to the mix: the first time and second time load of gdbSyncTask are ok, but on the third time the load method gets an error of "Request Forbidden" in the completion block. Thanks.
... View more
10-05-2021
03:24 PM
|
0
|
0
|
3687
|
|
POST
|
Hi there, I'm loading layers in a feature service to map using AGSGeodatabaseSyncTask. The feature service is not secured. Everything works just fine but occasionally not always though, the ArcGIS credential dialog appears on loading the syncTask as shown in the attached image. Once the dialog is out I can't skip or sign in as the sign in button is greyed out. The only way out is to kill the app... let gdbSyncTask = AGSGeodatabaseSyncTask(url: url) gdbSyncTask.load { (error) -> Void in ... loading layers to the map after gdbSyncTask loaded without error... } I tried to set the gdbSyncTask.credential property with a valid credential of username and password but the dialog still pops up randomly. How can I stop it popping up? Thanks, Shimin
... View more
10-04-2021
09:10 PM
|
0
|
16
|
5778
|
|
POST
|
Hi Nick, Making it an instance variable helped. Thank you so much for your help. Cheers, Shimin
... View more
09-23-2021
05:19 PM
|
0
|
0
|
1058
|
|
POST
|
Thanks Nick for your reply. I don't think the portal variable is deallocated because I can get a valid license from portal.portalInfo.licenseInfo. I'll try to make it an instance variable...
... View more
09-23-2021
05:10 PM
|
0
|
1
|
1058
|
|
POST
|
Hi All, I'm checking out an ArcGIS Runtime license from our ArcGIS Online account using the code below that is copied from ArcGIS Runtime SDK for iOS documentation: //get the users license info from the portal portal.fetchLicenseInfo { (licenseInfo,error) in guard let error = error { print("Error fetching user's licenses... \(error)") return } //set the license using the Named User's licenseInfo do { let result = try AGSArcGISRuntimeEnvironment.setLicenseInfo(licenseInfo!) } catch let error as NSError { print("error: \(error.localizedDescription)") } //The app is now licensed // Save the license information so that the app can be started and licensed offline // In this example the licenseDictionary is stored in keychain var licenseDictionary: NSDictionary? do { licenseDictionary = try licenseInfo?.toJSON() as! NSDictionary? } catch { print("LicenseInfo not available") } let keychainItem = AGSKeychainItem(identifier: "com.your_org.your_app_name", accessGroup: nil, acrossDevices: false) keychainItem.writeObject(toKeychain: licenseDictionary!, completion: { (writeError) in if let error = writeError { print("Error writing to the Keychain... \(error)") } }) } The problem is that the completion closure of the portal.fetchLicenseInfo() method never gets invoked and as a result I never get a license or an error... However, I can get a valid license from the portal property: portal.portalInfo?.licenseInfo, but 'licenseInfo' is deprecated: This property has been replaced by `AGSPortal#fetchLicenseInfoWithCompletion:` from Xcode. Does anybody have any idea please? I'm using SDK 100.10. Thanks, Shimin
... View more
09-23-2021
04:35 PM
|
0
|
3
|
1065
|
|
POST
|
Hi Mark, It worked. Thank you so much for your help. Cheers, Shimin
... View more
07-29-2021
03:24 PM
|
0
|
0
|
2117
|
|
POST
|
Sorry did not answer your last question. I did not publish the feature service but I think the layer default visibility is set by unticking the layer in the TOC of publishing mxd or ArcGIS Pro document.
... View more
07-27-2021
04:40 PM
|
0
|
0
|
2144
|
|
POST
|
Hi Mark, Thanks a lot for your reply. We are creating the map and adding the layers programmatically. Here is the func adding the feature service layers: func loadOnlineModuleLayers() { mapView.map?.operationalLayers.removeAllObjects() if let url = URL(string: AppState.shared.currentModule!.featureServiceURL!) { let gdbSyncTask = AGSGeodatabaseSyncTask(url: url) gdbSyncTask.load { (error) -> Void in guard error == nil else { print("Failed loading GDB task with error: \(error!.localizedDescription)") return } let featureServiceInfo = gdbSyncTask.featureServiceInfo let layerInfos = featureServiceInfo?.layerInfos let groupLayer = AGSGroupLayer() groupLayer.name = AppState.shared.currentModule!.moduleName for layerInfo in layerInfos! { let url = gdbSyncTask.url!.appendingPathComponent("\(layerInfo.id)") let featureTable = AGSServiceFeatureTable(url: url) let featureLayer = AGSFeatureLayer(featureTable: featureTable) print("\(layerInfo.name) isVisible = \(featureLayer.isVisible)") groupLayer.layers.addObjects(from: [featureLayer]) } self.mapView.map!.operationalLayers.add(groupLayer) } } else { Alert.showAlert("Feature Service URL", message: "Module feature service URL is not accessible.") } } We did not manipulate the layer visibility while adding the layers to the map. Here is the printout of layer visibilities: As you can see the BAHS Traverse layer's isVisible = true, but in the service directory the default visibility for the layer is false: We are expecting this layer on map has a false isVisible but it is true. As mentioned before, this works as expected with SDK 10.2.5 for the same feature service. Many thanks for your help. Cheers, Shimin
... View more
07-27-2021
04:26 PM
|
0
|
1
|
2148
|
|
POST
|
Hi there, We are on ArcGIS Runtime SDK for iOS 100.10. We set the default layer visibility to false for some of the layers in our feature services by unticking the layers in the TOC of publishing map documents. We can confirm that the default layer visibilities of those layers are false in service directory. But when we add the service layers or downloaded offline database layers to map those layer's isVisibles have become true and the layers are drawn on the map. Basically we don't want the map to draw those layers we untick in the publishing document. However, it works fine with SDK 10.2.5 for the same feature service. Does anybody have any idea please? Thanks, Shimin
... View more
07-13-2021
03:53 PM
|
0
|
6
|
2218
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 11-08-2022 01:10 PM | |
| 1 | 09-19-2022 09:21 PM | |
| 1 | 05-23-2022 06:49 PM | |
| 1 | 03-24-2022 05:49 PM | |
| 1 | 10-31-2021 03:16 PM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|