【发布时间】:2014-09-12 12:52:58
【问题描述】:
我正在谷歌地图上做一个项目。我的要求是在线时保存谷歌地图并在离线模式下使用。在 Ios 中,他们使用了 GMSTileURLConstructor。同样,是否有任何保存地图的概率。如果是的话,你能给我任何想法或链接吗?
-(void)ViewOfflineMap
{
GMSTileURLConstructor urls = ^(NSUInteger x, NSUInteger y, NSUInteger zoom) {
NSString *strMap=[NSString stringWithFormat:@"http://mt0.google.com/vt/x=%ld&y=%ld&z=%ld",(long)x,(long)y,(long)zoom];
return [NSURL URLWithString:strMap];
};
GMSURLTileLayer *layer=[GMSURLTileLayer tileLayerWithURLConstructor:urls];
layer.zIndex=100;
layer.map=mapView_;
}
提前致谢。
【问题讨论】:
标签: android google-maps