I have searched this topic without good results.
I have created a map with personal markers into Google Maps account (shared map).
Now I want to display that map into an Android App with Google Maps API
It's that possible?
I want to do this so I can update markers of the map direclty from the web and the app always will be up to date.
What you want is to get the kml file containing all the objects of your custom map layer.
Open your map (e.g. https://mapsengine.google.com/map/edit?mid=zbzKgwyzjU1k.kfNmxdgezpIg)
Change the link from edit to kml (note that you'll need to make the map public)
Result: https://mapsengine.google.com/map/kml?mid=zbzKgwyzjU1k.kfNmxdgezpIg
Now that you have a link to your map with up to date information on the new items, you can fetch and parse it every time you start your app.
There are plenty of sources that tell you how you can parse xml files, kml is about the same.
Related
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.
I have developed an app, in which Im using map option to display the user stores in google map using Google map API V2 for it.
I'm able to display the map with 2-3 market in it, every this is working fine.
I want to share that map with marker and all to pc as a url.So that i can open in browser.
How can i do it?
Is it possible to do it or not ?
I don't think they offer functions to do it. But you can build your own, which looks something like this:
http://maps.google.com/maps?q=[ADDRESS]&z=[ZOOMLEVEL]
you can always refer to the Google Maps Embed API for more information.
*note that, sadly, there are no way for adding multiple markers into the maps.google.com.
I want to show a google map of a place with custom markers for different places. I want to be able to edit these markers without updating the app. Best way to do this according to me is using Maps Engine layer in Maps api for android. I have tried searching but haven't gotten an answer.
If there is a better way to do what I am trying to achieve please suggest me that. Let me know if updating/adding markers is not possible without updating the app.
Yes you can pull maps engine data into your app via the API and populate markers on your map view.
Google give some great examples in the API docs # Maps Engine API docs
You could also roll a home brew solution and store your marker data on a server and have your application check for updates each run or daily.
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.