Giter Site home page Giter Site logo

Comments (7)

ericpanorel avatar ericpanorel commented on May 20, 2024
" but if I could populate the cluster's infowindow with the info that was on the item marker that would be fine too"

I think, if you return a false to the method (override) onClusterClick of your class that implements ClusterManager.OnClusterClickListener, you will be able to show the related InfoWindow

To "prepare" what needs to be shown in the InfoWindow, I think you need to override the method onBeforeClusterRendered in your renderer class...

from android-maps-utils.

aaronkelly6 avatar aaronkelly6 commented on May 20, 2024

You are the man! Thanks so much. Is there somewhere I should have read that?

FYI the preparation requires markerOptions.visibility(true) to be called just where you said.

Again, many thanks, I'd never have figured that out.

from android-maps-utils.

broady avatar broady commented on May 20, 2024

This is probably deserving of a code sample :)

from android-maps-utils.

aaronkelly6 avatar aaronkelly6 commented on May 20, 2024

Actually, turns out that returning false wasn't necessary after all...

from android-maps-utils.

aaronkelly6 avatar aaronkelly6 commented on May 20, 2024

Just setting the markerOptions visibility did the trick on it's own...

from android-maps-utils.

aaronkelly6 avatar aaronkelly6 commented on May 20, 2024

I didn't like it in the end..sorry(!)...not pretty enough. So I ended up adding a temp marker to the raw map in onBeforeClusterRendered and popping it's infowindow with the stuff that was already there and make sure to remove it when another marker is clicked. Hacky but looks good.

Ideally if we could flag a marker as 'active' i.e. last clicked or has infowindow showing or something and have the cluster manager NOT cluster it then that would obsolete this workaround.

Thanks again for your help.

from android-maps-utils.

aaronkelly6 avatar aaronkelly6 commented on May 20, 2024

Didn't realise I could comment without re-opening!

from android-maps-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.