Closed GoogleCodeExporter closed 8 years ago
Thank you for the feedback.
As a workaround for now you can call showInfoWindow in Handler.post().
Clustering internally posts creation of real marker objects to save on RPC
calls.
I'm thinking of two ways to fix it, so it will hit next version.
Original comment by maciek.g...@gmail.com
on 16 May 2013 at 7:30
Thanks for the quick reply.
I've tried the following
private final Handler handler = new Handler();
// some method start
this.handler.post(new Runnable() {
@Override
public void run() {
marker.showInfoWindow();
}
});
// some method end
but it still doesn't work.
Then I've tried to move camera before showing info window and it seems working
Ok.
private void showInfoWindow(final Marker marker) {
this.map.moveCamera(CameraUpdateFactory.newLatLng(marker
.getPosition()));
marker.showInfoWindow();
}
Please, explain
Where is my mistake with handler?
Is my workaround valid?
Regards
Original comment by sergei.r...@gmail.com
on 17 May 2013 at 8:15
If you don't have any side effects any workaround is good until this is fixed.
Seems like this is a separate issue I didn't notice before. Did you try to call
this.handler.post(new Runnable() {
@Override
public void run() {
marker.showInfoWindow();
}
});
on a marker that was not on the screen initially? If you do that when also
using ClusteringSettings.addMarkersDynamically marker will not be physically
added to the map, so you won't see info window. I'm adding this as a separate
bug (Issue 15).
Original comment by maciek.g...@gmail.com
on 17 May 2013 at 1:15
This will hit 1.4, you may clone repo if you want to have the fix already
Original comment by maciek.g...@gmail.com
on 18 May 2013 at 4:37
Original comment by maciek.g...@gmail.com
on 8 Aug 2013 at 2:49
Original issue reported on code.google.com by
sergei.r...@gmail.com
on 16 May 2013 at 6:10