Android Google map balloon over overlayitem

Posted by Faisal khan on Stack Overflow See other posts from Stack Overflow or by Faisal khan
Published on 2010-05-04T08:37:13Z Indexed on 2010/05/28 5:41 UTC
Read the original article Hit count: 1133

Filed under:
|
|
|

I am using google map, displaying overlayitems on the google map.

To create balloon effect, i am using customize view and using geopoints with MapView.LayoutParams to display it at particular location.

overlayitem's icon and baloon both having same geopoint thats why they both are overriding eatch other.

I want to display baloon over the overlayitem icon look like it should point to 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 baloon like following please tell me should i decrease lat long to make it top ? or should i change the layout param.Bottom or what i tried different variation not working like following

alt text

© Stack Overflow or respective owner

Related posts about android

Related posts about googlemaps