Reputation: 1037
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.
Upvotes: 1
Views: 1532
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
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