You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.
I tried solution from here: #31
and here: #146
But or I don't know how to use it or those solutions doesn't work anymore.
Can somebody explain me please how to detect cluster click event?
What I am trying to do is to avoid zoom on cluster click and show popup instead.
I made a little progress but still doesn't have all functioning:
leafletData.getMap().then(function (map) {
var layers = map._layers;
angular.forEach(layers, function (layer, key) {
if ('_gridClusters' in layer) {
layer.on('clusterclick', function (e) {
var map = e.target._map;
children = e.layer.getAllChildMarkers();
latlng = e.latlng;
e.target.getVisibleParent(e.layer.getAllChildMarkers()[0]).bindPopup("content").openPopup();
});
}
});
});
This have two issues:
When I click on cluster marker it doesn't work first time.
When I click on cluster marker it shows popup but still make a zoom and popup close immediately
Also I am not sure if I implement it like this that this is a good (angular) way.
The text was updated successfully, but these errors were encountered:
And if do something like this it works but it is not part of scope. http://plnkr.co/edit/pq0203gY6XEB77sAnC1s?p=preview
For example$scope.markers is undefined but I have markers on map and I can't filter them because this implementation is out of angular.
I tried solution from here: #31
and here: #146
But or I don't know how to use it or those solutions doesn't work anymore.
Can somebody explain me please how to detect cluster click event?
What I am trying to do is to avoid zoom on cluster click and show popup instead.
I made a little progress but still doesn't have all functioning:
This have two issues:
Also I am not sure if I implement it like this that this is a good (angular) way.
The text was updated successfully, but these errors were encountered: