I’m using the kmlviewer example from Apple but it takes the kml file from a local diretory. What I want to do is call that file remotely using an url.
This is the original code from Apple:
NSString *path = [[NSBundle mainBundle] pathForResource:@"KML_Sample" ofType:@"kml"];
NSURL *url = [NSURL fileURLWithPath:path];
kmlParser = [[KMLParser alloc] initWithURL:url];
[kmlParser parseKML];
How can I call a remote file which is in an url as: http://www.domain.com/route.kml ?
Best regards.
MapViewController.h :
MapViewController.m :