How to cache / load google map v2 map programmatically?

How to cache / load google map v2 tile programmatically ?, is this possible?

Bcos is not possible according to this prntscr.com/3cyiqf , but since I saw this TileProvider link using local fragments I thought that if Android provides the TileProvider class to load / use the fragment from the asset, then it should be something accessible cache / download fragment programmatically / runtime

My actual requirement:

If the user is connected to the Internet at this time, he can download / cache a fragment of a certain area or he can download / cache, see the map only on the phone’s screen and whenever he goes offline at this time, the loaded map should go to be visible.

What I have done so far:

I saw OSMDROID lib, they provide very good functionality, but the problem is that I want to use only Google Map V2

I already checked the static map API, and I also created one demo to download the fragment, but they return an image with the specified zoom level, so in this case, if I use a static api map, then the user can see only 1 map level, they can not can increase / decrease, so this is not good.

Output:

I want to know if there is any tool in Google Map V2 to download / cache map fragments programmatically / runtime?

EDIT

Can I use the Google Map Engine for the same?

+12
android google-maps-api-2 offline-caching osmdroid google-maps-engine
Apr 25 '14 at 9:15
source share
2 answers

According to this 10.1.3 (b), you can do this temporarily on your mobile device.

This project implements it, I cannot provide a concrete example, but you can look into it with open source code.

+3
Sep 25 '14 at 10:13
source share

From this link I understand that you must have a license for what you want. At the bottom of the page is written

You can license Google Maps as a built-in feature of your stand-alone software or device

Google provides you with many free services, but above all, it has a limit, and after this restriction you must pay for this service.

+2
Apr 25 '14 at 10:18
source share



All Articles