javascript - Is there a way to return a list of all markers that are not currently within a cluster group? -


i'm working on project using angular-leaflet-directive + leaflet markercluster plugin.

what i'm looking is, on event (for example, +/- zoom level or when cluster groups change) i'd have function run returns markers not clustered.

the reason doing because i'd have visible markers have circle path around (20 nautical miles, that's not important)..

does have idea if possible?

thanks help. please let me know other info might need , i'll best you.

cheers!

after creating markerclustergroup, :

// let's assume have global map variable refers leaflet map myclustergroup.eachlayer(function(feature) {     // cluster group holds features     // ones not clustered added map     if (map.haslayer(feature)) {         feature.setstyle({ // feature not clustered have style re-render             fillcolor : "red"         });         // whatever want feature, have full access     } }); 

this might not best stuff in terms of performance guess work fine case. else should sneak marker plug-in code , modify/extend directly fit needs.


Comments