I use custom window info, however, calling marker.showInfoWindow(); always renders default window info, whilst if the user clicks on the marker, custom window info are rendered without problem. Can I programatically open my custom window info?
My case is that when the markers are drawn on the map, one particular marker should show its window info (so no user interaction), but preferably a custom one, as defined in my CustomWindowInfoAdapter class.
EDIT, would gladly delete this question, it was just me being clumsy, but maybe there's more guys like me out there. Anyways, my problem was that I was calling showInfoWindow before adding the adapter in my method resourceRepresentationsNearBy(), so obviously only the default info window was ever possible. So my erroneus code:
private void setUpMap() {
...
// Add search result markers to the map.
resourceRepresentationsNearBy();
// Setting up custom info window
mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter());
...
}
where as, corrected code is:
private void setUpMap() {
...
// Setting up custom info window
mMap.setInfoWindowAdapter(new CustomInfoWindowAdapter());
// Add search result markers to the map.
resourceRepresentationsNearBy();
...
}