Am using Google Maps Android V2 in my application. It take too much time to load. do make use of markers to point some particular location. So I was wondering is there a way to cache map or to store a particular area.Is it possible in my app..??
EDIT
In default Maps app we can cache the on screen map. How do they do that..??
I would advise against such actions(caching the map somehow and displaying it) since it is forbidden by Google terms of use.
There isnt an offline version of Google maps for android(or i am not aware of it, since i couldnt find it when needed a year ago)...the solution is to go with different map api if you really require this.
Are you doing some extensive calculations for your map marker or database work, etc..?
For example i didnt experience slow loading times with google maps when using regular data service internet and loading around 350 map markers on predefined positions...
Please check out this answer, how to use google map in offline app. This is based on osmdroid and also be aware of Google terms of use googleMap.
Related
How i can show google map offline?
I have gone through various stackoverflow question and answer but not able to find solution.
I have implemented com.google.android.gms.maps.MapFragment and i am showing direction from one point to other. I have got coordinates from GMapV2Direction. Now i want to show this as offline.
Following are the links i got from stackoverflow but not useful.
Google Map Offline
TileProvider using local tiles
Plese help!!!
See this solution or this one. Basically you just create your own tileprovider and access tiles locally. Totally doable with the v2 api.
API Reference
There's some false information floating around out there that the v2 google maps api requires an internet connection. There was a but where the api would require a single access after app install to verify with Google Play services, but I believe this has been fixed. See this and this
I've created an Android application that uses Google Maps API v2.
Can someone tell me if it is possible to download and store map tiles and map data for different areas of the map to be used offline. The ideal usage for this would be to be able to download the whole of the UK, store it on an SD card and then have my app look on the SD for the relevant map data.
Thanks
The answer pointed by Agil is for the case where you have your own TileProvider (i.e. you own the data). If you have access to the tiles, then yes, that is the right solution for you.
If you were thinking of downloading Google Maps tiles, then no, the API currently doesn't provide a way to download tiles for offline usage; only the one rendered on screen are cached.
Please refer to this answer. According to that answer, it is possible with Google Maps Android API v2.
I can't find relevant answer in the internet.
I want to use Openstreet Map offline as getting the map inside the sdcard and develop for Android app.
I can't find step by step guide how to save into sdcard. Then develop offline map.
Many thanks.
Not sure if this is a good question, but I will try to answer:
As #scai says, there is the #osmdroid toolbox that adds a widget to display OSM map tiles. This rendered tiles can be cached or downloaded from the OSM servers (respect TUP) and shared offline.
There are also other solutions to realize it https://wiki.openstreetmap.org/wiki/Frameworks
But please keep in mind, that it's usually not that easy:
maps get outdated and you wan't to update them at client side
map servers are shared goods and high speed bulk download is a shame
quickly your users will request geocoding, routing and all the features of Google Maps
quickly you want tot display more complex information on top of your widget
So I encourage you to think about what needs to be done first (also for further versions) and then pick the right toolbox :)
I'm starting developing a project of an android app.
For this project i need a map where i can draw circles, polylines and polygons and click in all of this draw shapes to show informations about each one. At this point, googlemaps + spatialite or googlemaps + quadtree + utils to identify if a LatLng belongs to a circle/polyline/polygon can solve the problem but i have one more requirement: i need to cache a zone of the map to work with it on the street without internet. I know that google maps official app can do this with th typing of "Ok Maps" but there are anyway to use that cache in my application? There are another way to do a cache of the map before going to the street and go without internet?
Preferably i would like to use google maps but I'll have to use another api? What?
Regards
Due to the need for Google to check your api key, I have not seen any way for third party apps to access google maps offline. If you need offline capabilities, one of the main solutions is something called osmdroid which has a similar interface to google maps but you can cache tiles for offline use.
OSMDroid
Within my Android application I display some data within a map. To do that I currently download some map data from an OpenStreetMap tile server and store it locally (so that users can access an already used map without causing traffic again).
Now I have seen some Android apps using other map data/sattelite pictures (perhaps from Google?). Unfortunately I could not find any tile servers that offer the same principle like OSM where it is possible to cache the map tiles locally. So does anybody know of similar projects/tile servers that are not OSM but provide the same functionality?
Elmi...
I didn't use tiles images of map for google..
But I have one sample link which provide tile image from google
Tile Image of Google Map
Maybe on MapQuest : http://developer.mapquest.com/web/products/open/map
Aerial view and others
In case somebody has the same problems: there exists some Android code at http://sourceforge.net/projects/libwlocate/ which already uses OpenStreetMap, Google Map and Google Sattelite view optionally for drawing Maps.