I'm using Skobbler for my maps project. I want to allow users to download parts of map for offline usage. As I could get from documentation, we can download maps for cities, states or countries using offlinePackageCode
for that area.
My question is, how to download the map for any area? Or how to get the offline package code for my searched location? E.g. I'm at coordinate A near Northwich (UK). Reverse geocoding returns a street:
CLLocationCoordinate2D coord = [self.mapView coordinateForPoint:CGPointMake(CGRectGetMidX(self.mapView.frame),
CGRectGetMidY(self.mapView.frame))];
SKSearchResult *searchObject = [[SKReverseGeocoderService sharedInstance] reverseGeocodeLocation:coord];
searchObject.name
is Hemming Street, offlinePackageCode
is empty string.
searchObject.parentSearchResults
contains the city object Northwich, but its type is SKSearchResultParent
which does not have property offlinePackageCode
.
So how can I download the map for this area?
Appreciate any help.
self.mapView.centerCoordinate
property instead of manually calculating the coordinate. – user467105