javascript - Leaflet.markercluster cluster added to DOM event -


i'm trying customize marker clusters appear pie charts, using chart.js library.

i've overridden iconcreatefucntion additional calculations necessary , set data, transform icons actual charts, need call additional js when cluster icon added dom.

how can hook leaflet.markercluster's "cluster icon added" event?

ok, figured out.

it's simple adding like:

cluster.on 'add', (event) ->     # stuff event.target, l.markerclustergroup instance 

to iconcreatefunction

hope helps else out 1 day...


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -