Android Google Maps infowinfow arrow not centered - android

I just noticed that the arrow below my infowindow slightly off-centered is. It is like 5dp moved to the left. I am using the code from the google example and didn't change anything. Anyone else experiencing this?

Related

Arrow direction header pointer in google map marker for Android

I am using Google map v2,everything works fine from viewing the map to applying polyline between markers.However there is one thing that I need to accomplish, it is to put arrow header inside the commonly used map marker.
The arrow must rotate or point to the direction of the next location and so on. here's the image looks like
map_marker
I have tried using only the arrow alone and it works fine with the use of .rotation(bearing) but my boss wants it inside the commonly used marker and only the arrow will move.They have a working sample but it works only in the browser using javascript.I haven't found samples or at least documentation about it on the internet only this similar question
How to display direction arrows in the map marker for google maps v2 android but unfortunately no one answered. I have also tried
.icon(BitmapDescriptorFactory.fromBitmap(getMarkerBitmapFromView(R.drawable.arrow_header)))
but the both the marker and arrow moves
I have done everything to accomplish this task and this would be my last resort just to inform my boss that just in case there is no way that it'll work on android. Thank you..

White shadow on top of map

I'm using styled Google maps, night style from mapstyle. On a certain tilt and zoom a white thing appears on top. On different zooms ant tilts everything is fine. Any ideas how this can be fixed?

compass position on Top right corner on google map v2 in android

Anyone please help me, I want to set compass button on top right corner on the Google map. I have wasted my lot of time but i didn't find any answer that can help me.
How can I achieve this with the Google maps ?
Any suggestions?
By default Compass is coming at left side corner in Google maps V2. You just set.setCompassEnabled(true).
myMap.getUiSettings().setCompassEnabled(true);
and also compass icon appear only if you rotate the map to not align to north.

How to hide the gray/white areas in mapView in android

In the following screenshot you can see a white area (highlighted by red) appearing by default in every mapview. I know that the mapView in android has this default behavior but when the native Google Maps app is launched in the device, it doesnt show the white area. I would like to see that behavior. But i am out of options. Should there be any scroll listener on the map which will stop the panning over white areas. Any help is appreciable.
Thanks,
In the following screenshot you can see a white area (highlighted by red) appearing by default in every mapview.
It does not appear "by default in every mapview". This sample application, for example, does not have these areas, at least at reasonable zoom levels.
It is likely that your problem is purely at a zoom level of 1, due to the aspect ratio of the Mercator projection. It has been years since I bothered with a zoom level of 1.
but when the native Google Maps app is launched in the device, it doesnt show the white area
That is because the Google Maps application does not start out at a zoom level of 1. If, however, you pinch-to-zoom to get to its lowest zoom level, then pan around, you will see those white spaces above and below the map. Again, this is most likely due to the aspect ratio of the Mercator projection.
Should there be any scroll listener on the map which will stop the panning over white areas.
I doubt it.

Showing the Google Maps reticle on Android

I'v encountered a problem with Google Maps on Android. In my app I have a location-chooser where the user navigates to his desired location to save the exact street location. In order for the user to actually see what street he is no (and not just the general area) I need to mark the middle of the map clearly.
The problem is that the reticle (the little circle marking the center) from Google Maps usually won't show. It appears at the most 1 out of 10 times I open the map, probably less. This happens regardless if I add other overlays or if I just show the map as is. I am aware of ReticleDrawMode and have tried setting it to DRAW_RETICLE_OVER, but this does not seem to work (and it should be the default already).
Have I missed something here? I have searched for the problem and from what I have see the problem seems to be common, but I havn't seen a solution for actually forcing it to always show, only for hiding it.
If the reticle is broken, does anyone have a good suggestion for how to create a custom one? As I said the the user will navigate the map, so I can't just do a normal overlay on a fixed point of the map, and the map also does not take up the full screen so drawing something over it is a bit ugly (although I guess that will be my last resort).
And of course I found the answer just after I asked the question, or at least part of the answer.
I haven't found out how to get the reticle to work, but the easy workaround for this is to use the fact that different widgets can overlap each other in a RelativeLayout, whichever is declared last will simply lay above the other. So I ended up putting the MapView in a RelativeLayout and then simply placing a TextView in the center of the same layout. The TextView is now over the center of the map and can be used to mark the middle.
(Going to replace the TextView with something more appropriate later, but the concept stays the same).

Categories

Resources