Pramod Ravikant
Pramod Ravikant

Reputation: 1037

Custom InfoWindow on Left Side for Google Maps Android

I want a custom InfoWindowAdapter to be shown on the Marker. I have already made a custom InfoWindowAdapter and implemented it but the problem is that by default it is shown above the Marker and I want it to be shown on the left side.

I went through some previous related question but didn't get a best answer.

Here is an image of what i want.

Thanks.enter image description here

Upvotes: 1

Views: 1532

Answers (2)

Richierich
Richierich

Reputation: 36

You can use the infoWindowAnchor() when you add marker as shown;

marker = mMap.addMarker(new MarkerOptions().position(markerPosition).icon(bitmapDescriptorFromVector(MapActivity.this, R.drawable.user_marker)).title(title).infoWindowAnchor(3.1f,1.0f));

Upvotes: 0

MaciejGórski
MaciejGórski

Reputation: 22232

Starting from September update (v12 or 3.2.65) of the Google Maps Android API v2 MarkerOptions.infoWindowAnchor was added. There are quite a few new functions, so check release notes too.

Edit:

Unfortunatelly this addition doesn't solve your problem yet. Added new issue for that.

Upvotes: 1

Related Questions