iOS SKMaps 下载的地图包在离线模式下不显示
iOS SKMaps downloaded map package not showing in offline mode
我按照文档(http://developer.skobbler.com/getting-started/ios#sec29)下载了国家地图包。我成功添加了它 (SKAddPackageResultSuccess
),停止了应用程序,在飞行模式下重新启动它,在那个国家/地区放大时没有显示任何信息。
我正在使用:
- SKMaps 2.5.1
- iOS9.2模拟器和iOS9.2.1iPhone6.
为了 SKMapView
使用下载的包,我还需要进行其他设置吗?我已经设置
SKMapsInitSettings* initSettings = [[SKMapsInitSettings alloc] init];
initSettings.mapDetailLevel = SKMapDetailLevelFull;
initSettings.connectivityMode = SKConnectivityModeOffline;
[[SKMapsService sharedInstance] initializeSKMapsWithAPIKey:kSKMapsAPIKey
settings:initSettings];
我有一个有效的 API 密钥。
谢谢!
如SylviA and the SKMaps technical support mentioned, I had to use the meta files, as described at developer.skobbler.com/getting-started/ios#sec28a.
我按照文档(http://developer.skobbler.com/getting-started/ios#sec29)下载了国家地图包。我成功添加了它 (SKAddPackageResultSuccess
),停止了应用程序,在飞行模式下重新启动它,在那个国家/地区放大时没有显示任何信息。
我正在使用:
- SKMaps 2.5.1
- iOS9.2模拟器和iOS9.2.1iPhone6.
为了 SKMapView
使用下载的包,我还需要进行其他设置吗?我已经设置
SKMapsInitSettings* initSettings = [[SKMapsInitSettings alloc] init];
initSettings.mapDetailLevel = SKMapDetailLevelFull;
initSettings.connectivityMode = SKConnectivityModeOffline;
[[SKMapsService sharedInstance] initializeSKMapsWithAPIKey:kSKMapsAPIKey
settings:initSettings];
我有一个有效的 API 密钥。
谢谢!
如SylviA and the SKMaps technical support mentioned, I had to use the meta files, as described at developer.skobbler.com/getting-started/ios#sec28a.