Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement cluster info window / custom look #8

Open
DDRBoxman opened this issue Oct 16, 2014 · 4 comments
Open

Implement cluster info window / custom look #8

DDRBoxman opened this issue Oct 16, 2014 · 4 comments

Comments

@DDRBoxman
Copy link
Owner

googlemaps#4

@wancheng628
Copy link

How to implement the tapping marker event with the cluster manager?

@kyramckenna
Copy link

Yes Ive got the same issue. The GMSMarker info contained in the Spot object is lost when its added to the cluster, therefore when you tap on the marker the title is missing

@ghost
Copy link

ghost commented Sep 2, 2015

I have same problem...

When i try show infowindow, i use the method:

  • (BOOL)mapView:(GMSMapView *)mapView didTapMarker:(GMSMarker *)marker {
    _mapView.selectedMarker = marker;
    return YES;
    }

    But this not show nothing.

    In debug, i can see that was added the title label and snippet, like imagem below:
    captura de tela 2015-09-02 as 02 23 44

But when method mapView:didTapMarker is called, this receive a marker only position, without the title and snippet, like image below:

captura de tela 2015-09-02 as 02 25 39

How can show Infowindow?

@mumensh
Copy link

mumensh commented Sep 15, 2015

@wancheng628 , @kyramckenna and @tiagoMaua
Hey guys, this is the fix for this issue.

Go to GDefaultClusterRenderer.m file, in clustersChanged method, add the following:

marker.title = cluster.marker.title;
marker.snippet = cluster.marker.snippet;

then the title and snippet will show normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants