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.
Related
I'm in the dark here. I'm trying to apply a KML Layer to a Google Maps API within an Android App using Android studio, but it seems impossible. I have exported the KML from a custom map on Google My Maps and also tried a KMZ as well, but, when I put the file into the /res/raw and try to invoke it, nothing shows up.
I managed to get some headway by having white pin-drops only show on the Google Maps API within the Android app, but it doesn't display names when the user clicks on each pin. I need these pins to have colors and styles - that's why I'm choosing KML instead of JSON but I can't find a lot of info about this.
Thanks all.
just donwload the android-maps-utils and modify the kml example in it,
here the link https://github.com/googlemaps/android-maps-utils
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 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.
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.