Timeline for Leaflet Marker Cluster: refreshCluster function issue
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 27, 2015 at 19:15 | vote | accept | Diffusion_net | ||
Oct 27, 2015 at 19:15 | comment | added | Diffusion_net |
Thanks BDD, but I was talking about implementing the refreshClusters() mentioned on the documentation. Either way thank you for taking your own time to help.
|
|
Oct 27, 2015 at 6:58 | answer | added | ghybs | timeline score: 3 | |
Oct 22, 2015 at 18:14 | comment | added | BDD | Updated marker cluster link. Looks like the previous one was linked incorrectly. | |
Oct 22, 2015 at 1:28 | comment | added | BDD | Sorry it's a little late, but here is a Leaflet marker cluster example | |
Oct 21, 2015 at 20:39 | comment | added | BDD | Sure. I will make one when I get off work. Probably 2-3 hours. | |
Oct 21, 2015 at 20:32 | comment | added | Diffusion_net | I cannot share my code, is there anyway you could just show a quick example of yourself using it? I am sure from there I can hopefully figure it out and get back to you what I have been doing wrong on my code. | |
Oct 21, 2015 at 20:11 | comment | added | BDD |
So you'll notice refreshClusters() isn't in that list. That means it can't be called on that particular object. If it's a plugin function, it's probably down in either map or options . So you'd call markers.options or markers.map . If you want to create a jsfiddle, I can try to take a better look at it
|
|
Oct 21, 2015 at 20:09 | comment | added | Diffusion_net | imgur.com/e8MyiA3 | |
Oct 21, 2015 at 19:56 | comment | added | BDD |
When you console.log(markers) , what do you get?
|
|
Oct 21, 2015 at 19:36 | comment | added | Diffusion_net |
To give a quick example: var markers = L.markerClusterGroup({spiderfyOnMaxZoom: false, showCoverageOnHover: false, zoomToBoundsOnClick: false , iconCreateFunction: function(cluster) { return new L.DivIcon({ html: '<b>' + cluster.getChildCount() + '</b>' });} is my markercluster group and on("clusterclick") I am trying to run the markers.refreshClusters(); and then given the error code. I am not doing anything fancy but for some reason it is not recognizing the refreshClusters as a valid function.
|
|
Oct 21, 2015 at 19:26 | comment | added | BDD | Do you have code we can take a look at? | |
Oct 21, 2015 at 18:41 | history | asked | Diffusion_net | CC BY-SA 3.0 |