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.
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 would like to know if you can input a URL of a custom map that was created through Google Maps and then show all the waypoints in your app without having to manually add them all.
Here's an example - https://www.google.com/maps/d/viewer?mid=zD38FaCAJQek.k_FDpSYzC2wI
What would be the fastest way to input all of those markers/waypoints and co-ordinates into my Android app that uses the Maps API? thanks.
To be exact, what you wanted to do is show markers on a map created with Google My Maps.
Unfortunately, it doesn't seem like the Android Google Maps API can read KML files directly, so importing these files into your app is not possible.
One thing you could do, though it is quite a bit of work, is export your created map's KML file and read it programmatically. Extract the coordinates you need and add them as markers into your app.
im currently developing with a friend a small app. We made some few custom maps on google.
If you dont know what i mean with "custom maps", its the maps you can create on google like "my friends"-map and mark all your friends on that map. Also you could mark some cool places on your custom "cool places"-map.
Yea and I wanted to know now, how i can load those custom maps in my own app?
Already made a small app with a GoogleMap on it, but cant find a way to show my selfmade maps.
Do I really have to draw all the markers etc. by code?
Thanks,
Termi
It is very simple to get custom Maps using Google API
Step1: Build a valid URL request with all necessary specifications.
Step2: Initiate the request and call Google API with this URL.
Step3: Remember you can play around and markers and other necessary customizations
in the URL itself.
Step4: Google API returns you an Image object as response to your object of type "Image".
Step5: Store this image using a reference....& use it as and when required.
Step6: Use this image object and load it into your map using display methods available on
Android.
I am currently creating an android app in which users can add overlay items to a Google map. The goal is to have these customized maps be saved and uploaded to an internet community. I can't figure out how to do this, but would really appreciate learning how to either embed the app (and thus the customized map) into a web page or just save the map and upload it.
Thanks,
Sam
Have a look at KML it's a xml markup language to exchange geospatial data ("maps"). Google Earth, Google Maps and other applications can read, write and display kml files.
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.