Dear All,
i tried to convert Object-c call in Swift using last stable SDK version:
AGSMapServiceInfo *serviceInfo = [AGSMapServiceInfo mapServiceInfoWithURL:serviceURL credential:nil error:&error];
the Swift equivalent seem is the following:
var serviceInfo : AGSMapServiceInfo;
serviceInfo = AGSMapServiceInfo(URL: serviceURL, credential: nil);
If i gets the following parameter:
serviceInfo.layerInfos
in Object-C works fine, but in Swift return NIL.
I tried a lot of example on internet but nothing works fine.
Could you please take a look?
Thanks and Regards.
Tony
Solved! Go to Solution.
Hope the Swift equivalent seem is the following:
serviceInfo = AGSMapServiceInfo.mapServiceInfoWithURL(serviceURL, credential: nil)
please note that my goal is to create a FOR statement to get all layers name from a Map Server and add them in my mapView.
Hope the Swift equivalent seem is the following:
serviceInfo = AGSMapServiceInfo.mapServiceInfoWithURL(serviceURL, credential: nil)