mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-26 08:03:51 +02:00
Make events for clusters start with cluster, clusterclick etc.
This commit is contained in:
@@ -32,6 +32,13 @@ L.MarkerClusterGroup = L.FeatureGroup.extend({
|
||||
this._currentShownBounds = null;
|
||||
},
|
||||
|
||||
//Overrides FeatureGroup._propagateEvent
|
||||
_propagateEvent: function (e) {
|
||||
if (e.target instanceof L.MarkerCluster) {
|
||||
e.type = 'cluster' + e.type;
|
||||
}
|
||||
L.FeatureGroup.prototype._propagateEvent.call(this, e);
|
||||
},
|
||||
|
||||
_sqDist: function (p1, p2) {
|
||||
var dx = p2.x - p1.x,
|
||||
|
||||
Reference in New Issue
Block a user