如何缓存/下载谷歌地图V2瓷砖编程? [英] How to cache/download google map v2 tile programmatically?

查看:173
本文介绍了如何缓存/下载谷歌地图V2瓷砖编程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何缓存/下载谷歌地图V2瓷砖编程?这可能吗?

How to cache/download google map v2 tile programmatically?, is it possible?

BCOS按照这个 prntscr.com/3cyiqf 它不是可能的,但因为我已经看到了这个链接 TileProvider使用本地的瓷砖 我认为,如果Android提供TileProvider类从比它应该可用于缓存一些资产装入/使用瓷砖/编程下载瓦/运行时间

Bcos according to this prntscr.com/3cyiqf its not possible but as I have seen this link TileProvider using local tiles I thought that if Android provides TileProvider class to load/use tile from the asset than it should be something available for caching/downloading a tile programmatically/run time

我的实际要求是:

如果用户当时与互联网连接,他可以能够下载/缓存的特定区域中的瓷砖或者他也可以下载/缓存,可见地图在手机屏幕上只有每当他下线了当时下载的地图应该去可见。

If user is connected with internet at that time he can able to download/cache a tile of specific area or he can download/cache, visible map in the phone screen only and whenever he goes offline at that time downloaded map should goes to be visible.

我做了什么到现在:

我看到OSMDROID lib中,他们提供很好的功能,但问题是我想使用谷歌地图V2仅

I have seen OSMDROID lib they provide very good functionality but issue is I want to use Google Map V2 only

我已经检查静态地图API,我也创建了一个试玩版,供下载的瓷砖,但他们返回与指定缩放级别的图像,在这种情况下,如果我使用静态地图API不是用户能看到的只有1级的地图,他们能不能进行放大/缩小,这样是不好的。

I have already checked Static Map API and I have also created one demo for downloading a tile but they return an image with specified zoom level so in that case if I use static map api than user can see only 1 level of map they can’t able to zoom-in/out so that’s not good.

结论:

我想知道的是谷歌地图V2提供任何设施,以下载/缓存中的地图图块编程/运行时间?

I want to know is Google Map V2 provide any facility to download/cache a map tiles programmatically/run time?

修改

我可以使用谷歌地图引擎一样的吗?

Can i use Google Map Engine for the same?

推荐答案

根据的10.1。图3(b)您可以在移动设备的时间做到这一点。

According this 10.1.3(b) you can do it temporally on mobile device.

项目实现它,我不能提供具体的例子,但你可以挖掘到它怎么把它开源。

This project implement it, I can't provide particular example but you can dig in into it coz it open-source.

这篇关于如何缓存/下载谷歌地图V2瓷砖编程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆