Android Map Google Maps over overayitem

I am using google map displaying overlays on google map.

To create a balloon effect, I am using a custom view and using geopoints with MapView.LayoutParams to display it in a specific location.

The overlay icon and the balloon have the same anchor, so both take precedence over all others.

I want the balloon to appear above the overlay icon as if it should be pointing at the icon.

Follwing is my code

MapView.LayoutParams mapParams = new MapView.LayoutParams(MapView.LayoutParams.WRAP_CONTENT, MapView.LayoutParams.WRAP_CONTENT, mapEvent.getGeoPoint(), MapView.LayoutParams.BOTTOM_CENTER);

      

alt text

I want to display the balloon as below, please tell me if I have to shrink the lat long to make it top? or should I change the layout of param. Below or what I tried another option does not work as shown below

alt text

+2


a source to share





All Articles