Android Google Map with marker animating Info Box - android

I am developing an Android app, and I would like whenever I click on some markers on a Google Map V2, to have an info box animating on the bottom of the page. So practically I want to achieve the same effect as Google Maps. As you can see on the image, if I click on the Tube marker, then a box with additional information opens on the bottom of the screen.
Does the Google Maps library support something like that? or should I custom implement that and how?

For people who want to achieve something similar, there is a possible duplicate here as a starting point:
Animation in RelativeLayout to slide down

Related

Animate Marker Google Map android

I have implemented google map in my application, I want to animate my marker like below.
How can I achieve this?
Check this link,https://github.com/aarsy/GoogleMapsAnimations
GoogleMapsAnimations" is an awesome first of its type android library for showing a ripple and radar animations on a google map, e.g show catchment area of an earthquake where ripples have been felt, give prominence to certain markers which need to be highlighted. Also add a ripple when your user is moving on the map and give a #PokemonGo type ripple effect and also add a radar type effect to show users that you are searching in certain area
This link should help you :
https://developers.google.com/maps/documentation/android-api/marker
Then just use the image you have posted as the marker

Google maps v2 android, info window not highlighting in the default highlight color on click?

I have problem that infowindow in Google Maps Android is not working as it supposed to. When clicked is supposed to highlight with default blue color but nothing happens with color of infoWindow , onInfoWindowClick is called normally.
Any advice how to solve this problem and force highlighting on infowindow when taped?
It's not working for me too. Looks like we have to go deeper for such functionality :
As we know, InfoWindow is not live View, it is just an image rendered from view using View.draw(Canvas) as mentioned here:
https://developers.google.com/maps/documentation/android/infowindows#custom_info_windows
To enable touch events or custom layout button click events, one has to unlock them, or Override pre-defined methods for InfoWindow. Such a problem is solved here :
Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)

Android Maps V2: Custom info window at custom position or work around?

I'm able to show custom info window but not like iOs maps at diffrent position. Is there any way or workaround to show info window like this?
And can I make that show direction clickable?
You can place a normal View (or some ViewGroup in this case) on top of the map and move camera, so that Marker is placed where it looks like is pointed to by this View.
No native (using Google Maps Android API v2) way currently, but you may track this gmaps-api-issue for when it will be possible.

Android : Custom Pin Marker with buttons in Google Map API 2

I am working on android tracking application.
I need to show Connected friends on MapView. Each Friends marker contains image(Person image) and two buttons(Make Call and message) .
Note : The two buttons should show after image pressed.
I try this sample http://www.nasc.fr/android/android-using-layout-as-custom-marker-on-google-map-api/. It shows only TextView.
Is there any way to add custom marker with button or any other ideas to achieve this?
Below image shows the map-view that i want to add live views.
Thanks in Advance
If I'm not wrong, you're looking for infowindowadapter. Did you try infowindowadapter ? If not please implement it .
Here is the link
Visit Here
Thanks. Let me know if it helps.
Finally i ended up with my result with the below link
Google Maps Android API v2 - Interactive InfoWindow (like in original android google maps)
Its quiet interesting to hack layouts.
Thanks,
From the Google Maps V2 documentation:
Note: The info window that is drawn is not a live view. The view is rendered as an image (using View.draw(Canvas)) at the time it is returned. This means that any subsequent changes to the view will not be reflected by the info window on the map. To update the info window later (e.g., after an image has loaded), call showInfoWindow(). Furthermore, the info window will not respect any of the interactivity typical for a normal view such as touch or gesture events. However you can listen to a generic click event on the whole info window as described in the section below.
Therefore, you can't add buttons to the markers. An idea could be have that buttons somewhere in your layout and show/hide them when the user selects a marker.

Google Map on Android in a Tab

I am trying to make an application in which there are few tabs & one of the tab contains map.
Till now I was able to create the tabs and map on one of the tab. So when I click on the 1st tab I can see the map which shows a default city (Las Vegas).
My question is if now I want to create the same menu items (Search, Directions, Places etc.) which already exists in the default Google Map application in the emulator, Do I need to write the logic for all those menu items?
Its like I want the whole google map application in one of my tab. Is it possible?
I have created the map with zoom-in / zoom-out functionality. Now I want to add the search feature which will search for the place and locate it on the map. So do I need to write the whole code and ui for it? I am feeling like its re-inventing the wheel.
yes, you have to write the logic for all those menu items... the google maps api gives you all the tools to make it, like the map itself, overlays, items, itemized overlays, geocoding, etc. But the higher level functionalitys must be writed by you, using the tools mentioned above.

Categories

Resources