Comments (4)
@morrow95 Thank you for opening this issue. 🙏
Please check out these other resources that might be applicable:
- Support Console - If you have a support contract.
- Discord - chat with other developers
- StackOverflow - use the
google-maps
tag - Google Maps Platform issue trackers
This is an automated message, feel free to ignore.
from js-markerclusterer.
Stackoverflow setup with basically the same information / question : https://stackoverflow.com/questions/71190140/google-js-markerclusterer-updating-code-from-markerclusterer-plus.
from js-markerclusterer.
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.
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)
- After creating a MarkerClusterer unable to register 'mouseover' event on the clusterer object HOT 4
- [Markers] Using AdvancedMarkerElement with a `lat` or `lng` of 0 results in it not being drawn. HOT 1
- Markerclusterer: Property 'radius' does not exist on type 'SuperClusterViewportOptions'. HOT 17
- Avoid direct assignment of innerHTML for Advanced Marker-based cluster pins HOT 1
- AdvancedMarker not showing up when cluster is expanded (was: Incorrect display of markers on click(onClusterClick) on markercluster) HOT 6
- The Markercluster icons on the wall overlap each other, you need to add padding between the icons. HOT 2
- Allow option of zooming in just enough so that the markers are unclustered, as opposed to zooming in just on the clustered markers HOT 2
- Angular support? HOT 2
- Export MarkerUtils class so it can be used for custom algorythms HOT 2
- is there any way for this to be an extension or some way for me to use it? HOT 1
- MarkerClusterer: unnecessary rerendering of clusters when nothing has changed HOT 1
- Property 'radius' does not exist on type 'SuperClusterViewportOptions' HOT 6
- The property 'setIcon' does not exist for the type 'Marker'. HOT 3
- Problems with versions > `2.5.0` HOT 2
- Clusters blinking on updating its markers HOT 2
- Cluster is added behind advanced marker which near to cluster location HOT 1
- Option to ignore hidden markers HOT 1
- feat(DefaultRenderer): custom color
- SuperClusterViewportAlgorithm at zoom 0-3 not working. HOT 1
- Calculate custom count in custom cluster icon HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from js-markerclusterer.