android map overlay - android

I am new android developer working on google map.
i have no idea to display marker on map on click event and also automatically to current location.

oooook well
Here is a tutorial to show a marker on double tap. You can do this for single tap easily, but that may be annoying for the user.
and this is a tutorial to get your current location.
See ? everything was one google search away. hint hint

Related

How can I set a Google Map Marker back to the default icon after changing it?

I am using the android-maps-utils library with a Google Map in an android app I'm working on, and I have several markers on the map. I change the icons for some markers when certain conditions are met using setIcon() with an IconGenerator.
I want to then change the icons back to the original red Google Maps standard icons when a different condition is met. I can track the condition and change them to a different custom icon, but don't know how to return them to the Google default short of finding an icon somewhere online and adding it into my project to add manually as I am with my personalized ones. Does anyone know how to retrieve the defaults?
You can do
marker.setIcon(BitmapDescriptorFactory.defaultMarker());

Getting rid of google maps built-in buttons

Anyone have any idea on how to get rid of the buttons (like the compass button when rotating the map) presented on the image when clicking a marker. It is linked to Google map application. And i want to get rid of it. thanks
Here is the link for the sample image http://i.stack.imgur.com/8gw5b.png

Google map is grey when it is loaded How can i fix it?

I have added a button which retrieve my current location
when i click that button it returns my location but the map is always grey in color,nothing else is displayed
The issue is with your key. Probably you are using the key from API version 1 and code for version 2 (using SupportmapFragment or Mapfragment), this is why you might be getting a grey map with grids on it.
Please get a new from Developers console for Google maps version 2.
Hope this would help!!!

Geo intent to Google Maps with a Balloon

Is it possible to launch a Google Maps window from my app that shows a specific position plus a balloon with a label that I can define?
This could be done with
geo:lat,lon?q=my_label
but with latest Google Maps it shows a marker on the position with no balloon attached to it, then on the bottom of the screen it reads "labeled as my_label". Can I circumvent this?

How to add search button on Android Google maps ?

I want to put the search button in google maps in Android application (like the way I added zoom controls). However, I am not able to find a way to add it.
If you want to add a search button, you have to implement a the Reverse Geocoding, using a GeoCoder that receives your searched Strings from a EditText so with the coordinates obtained you can set a geopoint in the MapOverlay to show the searched position on the map.
For more info about Google Maps geocoding see:
https://developers.google.com/maps/documentation/geocoding/
This question is too vague. What "search button" are you talking about? Do you mean a SearchView? There's a search widget in the maps.google.com web interface, but that's not the standard Android design. The Android Google Maps app uses a SearchView with history and autocomplete.

Categories

Resources