POST
|
Hi everyone, As mentioned in the previous post (https://community.esri.com/thread/210293-retrieve-legend-info-from-tpk-file ), I wasn't able to get legend info from the local tpk file due to the legendInfo fetching functionality is not yet implemented. I'm wondering if this was fixed? Or is there other way to retrieve it? Thanks
... View more
01-22-2019
01:42 PM
|
0
|
1
|
367
|
POST
|
Thanks for replying, however, I checked the sublayer.count, it is 0. I have also checked the toolkit, but the only thing it's showing is the layer title. Did I initialize the tiled layer from tpk file wrong?
... View more
02-26-2018
11:59 AM
|
0
|
1
|
397
|
POST
|
I was trying to load the data back from the tpk file. This is what I what I wrote let layer = AGSArcGISTiledLayer.init(tileCache: AGSTileCache(fileURL: URL(fileURLWithPath: Globals.documentsDirectory.path + "/" + file))) It can render the map perfectly However, when I try to load the legend info with the function fetchLegendInfo, the result is empty. here's my code: layer.fetchLegendInfos(completion: { (legends:[AGSLegendInfo]?, error:Error?)->Void in print(legends) }) the variable legends will always be "Optional([])" Am I doing it correctly? Also to make sure there's actually data in the tpk file, i open it up with hex editor, which gives me this Which shows there's data in it, but somehow it's not getting it back correctly.
... View more
02-23-2018
12:51 PM
|
0
|
3
|
597
|
POST
|
Thanks for replying. So the function I'm looking is to initialize identify task with URL. However it seems not to be appeared in the API reference. But I do managed to do so by setting up a urlsession, and handle the result manually. Another question, I'm using data from tile packages. But im not sure how to retrieve legend data from the package. Is there an example?
... View more
02-23-2018
11:17 AM
|
0
|
0
|
288
|
POST
|
Hi there, I'm currently developing with the SDK, which is in 100.x.x version and I installed it with cocoapods. However, I also need the function "AGSIdentifytask" which is only provided in 10.x.x version.(Cuz I couldn't find it on the user guide) Is there a way to install both of them at the same time? I have tried specifying both versions in the podfile, however, it wouldnt let me do so. And I also tried install 10.2.4 manually with the sdk online, and 100.x.x with cocoapods, but still no luck, since they use the same framework name, when I import it in my codes, it only recognize the one from cocoapods.
... View more
02-21-2018
11:48 AM
|
0
|
4
|
388
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|