Comments (2)
Hello,
I did a quick test and I can reproduce the problem. I don't know why it doesn't work, it could be something related to Leaflet and how the markers are created by PruneCluster. I don't have the time to investigate the problem but I can suggest a workaround : by listening to popupopen events on the map object like this:
leafletView.PrepareLeafletMarker = function(leafletMarker, data) {
var popup = leafletMarker.getPopup();
if (!popup) {
popup = L.popup();
leafletMarker.bindPopup(popup);
}
popup.setContent(data.popup);
// Attach the data object
popup.data = data;
};
map.on('popupopen', function(e) {
if (e.popup.data) {
alert(e.popup.data.something);
}
});
I hope it helps
from prunecluster.
Thank you, I had also found this kind of workaround! :)
from prunecluster.
Related Issues (20)
- cluster onClick event
- "broken" link in readme HOT 1
- tooltips with permanent option issue HOT 1
- Possible to use X/Y point coordinates instead of LatLng? HOT 1
- Question: Cluster by distance HOT 4
- Cluster not updated for custom data fields
- Cluster not updating custom (rotationAngle & rotationOrigin) data fields in realtime HOT 1
- Cluster not updating custom (rotationAngle & rotationOrigin) data fields in realtime HOT 1
- PruneCluster webpack compability with newest exports-loader
- z-index for different clusters
- Change speed of the moving marker when .move is used? HOT 1
- Marker Clustering ServerSide HOT 2
- Svelte Import issue
- prune cluster in vue js
- Touch not working with latest Samsung browser HOT 3
- Is there any feature so we can toggle between cluster and markers? HOT 3
- Open the popup of a marker in the programm HOT 2
- showCoverageOnHover PruneCluster
- markerPop and clustering conflicting
- popups keepInView: false,
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 prunecluster.