I want to use HERE map offline capabilities, for this i downloaded map for my country using "here we go" app.
Now in my android project i am setting this
MapEngine.setOnline(false);
But my android project app is unable to load map, it is showing blank area. Since map is already downloaded, I am expecting this to show map from downloaded map version. Do i need to add MapLoader even if i already have downloaded map ? OR I need to call some other method?
I am using premium SDK that does have offline support.
App is working fine with Data connection on if i don't add setOnline(false)
Maps downloaded with HERE WeGo app wouldn't be available for your app. You need to download maps through your app.
For downloading maps:
- look at the description in documentation https://developer.here.com/mobile-sdks/documentation/android-hybrid-plus/topics/maps-offline.html
- look at an example app https://tcs.ext.here.com/sdk_examples/MapDownloader.zip
Related
I am developing an Android app using Google Maps API, and I want to know if I can download or cache the part of map that the user is watching to use it offline.
Thanks!
There is no way for precaching Google Maps. And also it is illegal .If you want to use precaching , you can go for Open Street Maps and other open alternatives .
I am developing a hybrid application using IonicFramework. In my case Google Map is displaying on browser, but it is not displaying in Android device.
I have created Google Map key for browser. so it is working fine in browser. but it is not displaying in android.
So, My Question is -
Do i need to create separate google Map key for android as well?
If yes then, how do we integrate google Map code for both platform?
When using the Google maps Javascript API v3 a key is not even mandatory, so getting another one will not solve your problem.
Can you see what error you are getting? (if you got a device plugged in, go to "other tools" > "inspect devices" and check out the console over there.
Are you just getting a gray screen?
I'm developing an android application which contains info of certain places. So when the user select one place(an item of a listview) an android map is shown (I'm using android api v2 of google maps), but of course this happens when the user has internet access.
Does anyone know a way of showing a map without connection?
Thanks!
If your application has write external storage permission, maps API v2 keeps a cache, so the map is normally displayed for area shown recently.
If you want to have a full offline map, you would have to embeed your own tiles, which possibly brings your app size to hundreds of MB or you can try to use open street map. See here: open street maps api for android.
I have application which uses Google Maps. Also I created "custom My Map" on Google account in Google maps. So the question is next - can I use MapView control to show this specific "custom My Map" on device?
I believe there isn't any API to access your stored "My Maps" data.
The only way I can think of doing it is to export your My Maps as a KML file, as described here. From that you can retrieve the file via a server or locally onto your Android app and parse it manually to find the location.
Another option is to use the link in the KML file and view it on the app via a WebView or something in the essence.
These are just speculations of course, but it is how I would approach it.
I know I can write an android app using open street mobile map api but I also want to support offline mode in my map. Is there a way to download the map of a city or a country and use it locally on android phone?
thanks.
Have you looked at the Open Street Maps Wiki page for Android? There seems to be a number of open source libraries some of which may have offline caching.
You can use the following combination (it worked very well for me):
OsmAndMapCreator: for downloading map for offline usage OsmAndMapCreator
Osmand : andrdoid application for map navigation and tracking Osmand google project
Once you install the osmand application on your android you can set the directory on which you will save the offline maps (beside osm, you can use various other sources as google map for example and easily switch between them).
The application have already a very complete set of features, and having the code you can extend/learn from it.