Giter VIP home page Giter VIP logo

Comments (4)

jpoehnelt avatar jpoehnelt commented on June 16, 2024

@morrow95 Thank you for opening this issue. 🙏
Please check out these other resources that might be applicable:

This is an automated message, feel free to ignore.

from js-markerclusterer.

morrow95 avatar morrow95 commented on June 16, 2024

Stackoverflow setup with basically the same information / question : https://stackoverflow.com/questions/71190140/google-js-markerclusterer-updating-code-from-markerclusterer-plus.

from js-markerclusterer.

morrow95 avatar morrow95 commented on June 16, 2024

Okay, I made some progress with this.

markerCluster = new markerClusterer.MarkerClusterer({ map, markers, onClusterClick });

function onClusterClick(cluster) {
    ...
}

1 - Is there no way to get the length of the cluster that was clicked? Previous version allowed cluster.getMarkers().length, but this new version doesn't appear to offer anything unless I am missing it.

2 - Is there no way to get information from the cluster that was clicked? Previous version allowed 'cluster.getMarkers()' that allowed me to pull and display data from that specific cluster.

from js-markerclusterer.

jpoehnelt avatar jpoehnelt commented on June 16, 2024

onClusterClick is a convenience method. You can move click logic to the renderer instead, this provides access to precomputed cluster stats and the cluster object (which contains an array of markers).

from js-markerclusterer.

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.