Search code examples
iosskmaps

Skobbler Offline Maps


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.


Solution

  • Right now the SDK does not allow downloading maps for dynamic bounding boxes but only priorly predefined map cuts.

    E.e. we cannot create on demand a map for Northwich, but knowing that such a map will be required we can create a map for Northwich in advance and add it to our maps.xml file so it can be downloaded when required.