Hi,
I am trying to load KML file on the Arcgis Map. It is giving following error.
Error Domain=com.esri.arcgis.runtime.error Code=8001 "Unlicensed feature." UserInfo={NSLocalizedFailureReason=, NSLocalizedDescription=Unlicensed feature., Additional Message=}
I am using iOS runtime sdk v100.15. I have standard license key. Still it is showing the same error.
Please find the code below:
func showKML(){
guard let kmlPath = Bundle.main.path(forResource: "LNT_Campus_kml_1", ofType: "kml") else {fatalError("Unable to get kml")}
let kmlDataset = AGSKMLDataset(url: URL(string: kmlPath)!)
let kmlLayer = AGSKMLLayer(kmlDataset: kmlDataset)
map.operationalLayers.add(kmlLayer)
kmlLayer.load { [weak self] (error) in
if let error = error {
print(error)
}
}
}