POST
|
Hi, IOS SWIFT I want to query features with attachments. I have tried to use the sample edit data attachment but not successful. When I using the identify layer, am able to get the attachment, but I want to achieve through query layers. Below are the code, I have tried. var featureTable: AGSServiceFeatureTable! featureTable = AGSServiceFeatureTable(url: URL(string: layoutMapping.offersURL)!) let featureLayer = AGSFeatureLayer(featureTable: featureTable) let map = AGSMap() let mapImageLayer = AGSArcGISTiledLayer(url: URL(string: layoutMapping.arcGISURL)!) map.operationalLayers.add(mapImageLayer) map.operationalLayers.add(featureLayer) self.mapViews.map = map let layers:[AGSLayer]! = map.operationalLayers as! [AGSLayer] let featureLayer1:AGSFeatureLayer = layers[1] as! AGSFeatureLayer let queryParams = AGSQueryParameters() let query = "1=1" queryParams.whereClause = query let table1 = featureLayer1.featureTable as! AGSServiceFeatureTable table1.queryFeatures(with: queryParams, queryFeatureFields: .loadAll, completion: { (result:AGSFeatureQueryResult?, error:Error?) -> Void in if error != nil { let alert = UIAlertController(title: self.layoutMapping.appTitle, message: "Server Connection Failed!", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Ok", style: .default, handler: nil)) self.present(alert, animated: true) } else if let features = result?.featureEnumerator().allObjects as? [AGSArcGISFeature] , features.count > 0 { for feature in features { var imageList = [UIImage]() guard let arcgisFeature = feature as? AGSArcGISFeature else { print("test") } feature.fetchAttachments { (attachments:[AGSAttachment]?, error:Error?) -> Void in if let error = error { print(error) } else if let attachments = attachments { print(attachments.count) let attachment = attachments[0] attachment.fetchData { (data:Data?, error:Error?) -> Void in if let error = error { print(error) } else if let data = data { let image = UIImage(data: data)! //cell.imageView?.image = image imageList.append(image) } } } } } } }) Please provide your answer. Thanks
... View more
10-30-2018
12:57 AM
|
0
|
1
|
825
|
POST
|
thank you for your support. I got the answer with your reply
... View more
09-07-2018
06:25 AM
|
0
|
0
|
858
|
POST
|
Hi Garima, Thank you for the reply. I have tried the following but it is not filtered in the map 1. I have added portal item into the map 2. get the list of operational layers (let layers:[AGSLayer]! = self?.map.operationalLayers as! [AGSLayer]) 3. assigned in feature layer (self?.featureLayer1 = layers[3] as! AGSFeatureLayer) 4. applied filter (self.featureLayer5.definitionExpression="field='xxxx'") 5. -------- No filter applied in the map --------- please guide me how to apply filter and filtered values should be changed in the map. thanks
... View more
08-21-2018
06:27 PM
|
0
|
1
|
858
|
POST
|
Hi Garima, Thank you for the reply. identify layers works fine. Now I want to customize the popup view controller to display the identify result. Please guide how can I start. Thanks
... View more
08-21-2018
06:01 PM
|
0
|
1
|
1039
|
POST
|
Hi, I have the web map that contains the map service and feature service. 1. I want to get the feature count and feature details based on map extent 2. How to apply filter/search for the features in the webmap Please provide the example to access from web map. How to read and apply. Thanks for your support
... View more
08-20-2018
08:58 AM
|
0
|
4
|
968
|
POST
|
Hi Mark, Thank you for your answer. I tried Edit Features (connected) sample, but my requirements is to get the feature layer from web map. I have map image layer and feature layer in the web map and it is loaded in the map view. when I click the point feature service then the feature information should be readable, Please provide the samples.
... View more
08-18-2018
07:38 AM
|
0
|
1
|
1039
|
POST
|
Hi, Can I have help documents to work with web maps in IOS runtime. Following are my requirements I have already accessed portal item and loaded into mapview 1. How to work with popup and display (popup already setup in webmap) 2. How to access the feature layer information when I select the feature in the map and map extent More help required to work with webmap. Please provide any sample, if available Thanks for your support
... View more
08-15-2018
11:08 PM
|
0
|
5
|
1162
|
POST
|
Workaround: 1. Copy the ARCGIS.BUNDLE as your local copy 2. Remove the magnifier files for ipad (magnifier~ipad) from the BUNDLE 3. Replace the BUNDLE from the XCODE project 4. Run the application 5. Maginifier will appear I refered the following post:http://forums.arcgis.com/threads/86210-Magnifier-on-non-retina-iPad-too-big?p=342541#post342541 Muzammil
... View more
11-06-2013
05:39 PM
|
0
|
1
|
926
|
POST
|
Hi, How to place picture fill symbol multiple times in a graphic element? Please see the attachment for my approach (coding)? Thanks in advance.
... View more
06-19-2013
08:52 PM
|
0
|
1
|
759
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|