android-maps-utils: Custom Info Window stopped working in this new version. README does not explain anything
Before I start, I would like to say that I went through the other issues regarding this and how there is a new README with mitigation process.
But the new README only explains if you use Marker Manager.
How about the if you don’t use marker manager at all?
this is how I add markers (I am using Glide)
mUserMarker = mMap.addMarker(new MarkerOptions()
.icon(BitmapDescriptorFactory.fromBitmap(bitmap))
.position(loc)
.title(getResources().getString(R.string.not_online))
and my custom info window
mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {
@Override
public View getInfoWindow(Marker marker) {
View myView;
myView = LayoutInflater.from(getActivity())
.inflate(R.layout.custom_user_info_window2,null, false);
return myView;
}
@Override
public View getInfoContents(Marker marker) {
return null;
}
});
How to fix this in the new version where it stopped working.
Please help, thanks in advance
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (6 by maintainers)
yes! thanks @ arriolac
So here is the complete code for setting both nonClusteredMarkersCollection and Clustered custom info window on the same map.
Hope this help others!
here is what i am using
and I am using Glide to add my NON CLUSTERED markers
and POJO model “Person” for CLUSTERED MARKERS