Commit Graph
93 Commits
Author SHA1 Message Date
danzel 2a0a62f3f0 Cluster everything up from the bottom. Makes clustering look visually pleasing and gets rid of artifacts from old clustering. Some dead code removal from this change next... 2012-07-24 16:12:27 +12:00
danzel 35f112b2bf Add a realworld example using address points from LINZ map data. Clusterer makes a mess of it, but it provides a good starting point for fixing it! 2012-07-24 15:21:40 +12:00
danzel 184a919fec Default examples should work in IE 2012-07-24 14:58:21 +12:00
danzel 9630bbd1f1 We are beautiful, readme should say so ;) 2012-07-24 14:45:50 +12:00
danzel 6f12b24d66 Fix up opacity bug in the custom example 2012-07-24 14:45:10 +12:00
danzel ad9ee303a5 Do another pass on the README to bring it up to date with the events changes etc. 2012-07-24 14:22:30 +12:00
danzel 5d9b427801 Make everything work, add a custom example showing doing everything custom. 2012-07-24 14:14:27 +12:00
danzel bca91c6dc9 Move defaults out to their own file and use them for marker-clustering-everything. Gives people an easy way to use clustering with all the defaults. 2012-07-24 13:46:35 +12:00
danzel 602a5ae1d2 Make events for clusters start with cluster, clusterclick etc. 2012-07-24 13:26:47 +12:00
danzel a8dc5f315b Animate unspiderfying if supported :) Fixes #8 2012-07-24 11:51:28 +12:00
danzel 94176bcf66 Tidy ups, comments. Probably works with canvas now (not tested) 2012-07-24 11:37:28 +12:00
danzel 9860dcbdf3 Get spiderLeg animations working. FF appears to have some issues with animating the markers. 2012-07-24 11:18:28 +12:00
danzel ffbe50b740 Add a currently unworking animation for the spider legs 2012-07-24 11:04:25 +12:00
danzel 813d38a09a Don't re-spiderfy if the same cluster is clicked twice 2012-07-24 09:18:30 +12:00
danzel ab5714fe9d Add a non animated version of Spiderfier 2012-07-23 16:14:47 +12:00
danzel eebf8e9e81 Spiderfier basically done. Need to add a non animated version for suckers 2012-07-23 16:08:44 +12:00
danzel 14070bf4ba Gotta be sexy :) 2012-07-23 15:48:31 +12:00
danzel 45d9f8f841 Starting on spidifier based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet (Thanks jawj!) 2012-07-23 15:44:26 +12:00
danzel 6e81c385e1 Do backwards loops for some tiny performance win. 2012-07-23 14:38:24 +12:00
danzel f048d8ad07 Remove console.log 2012-07-23 14:11:20 +12:00
danzel 69b62e3250 Try keep around 2 levels on top of what we need so the tree is more efficient. Fixes #11 2012-07-23 14:10:35 +12:00
danzel c2609c7dfb get moveEnd working again! 2012-07-20 17:17:31 +12:00
danzel 48b444e628 Make _recursivelyAddChildrenToMap use _recursively so that it works with ones that haven't generated child clusters. also fix up when to generate child clusters 2012-07-20 16:59:56 +12:00
danzel 569b64fc3c Trash debug bits 2012-07-20 16:43:00 +12:00
danzel 96b4d8b73e Implement generating new clusters as required when zooming down 2012-07-20 16:42:39 +12:00
danzel 643757df40 Give the everything example add/remove buttons 2012-07-20 16:27:50 +12:00
danzel d8317c04ba Pass the right zoom level in so that clustering happens at the right scale 2012-07-20 16:27:33 +12:00
danzel 55d221c9e1 Fix-Fix double childCount adding bug. Fix broken icon after add bug 2012-07-20 16:15:07 +12:00
danzel a944d7de44 Fix child counting bug 2012-07-20 16:03:14 +12:00
danzel fb80032942 Refactor out the animation code and add a non animated addLayer animation 2012-07-20 15:35:22 +12:00
danzel bd4780cc1e _recursivelyAddLayer works, possible still some small bugs. 2012-07-20 15:22:17 +12:00
danzel a39f71fad5 More work towards _recursivelyAddLayer. Still some bugs 2012-07-20 14:44:21 +12:00
danzel cc677f0ce9 Simplify cluster function 2012-07-20 14:20:46 +12:00
danzel 96e3a8cbf7 Fixing up _recursivelyAddLayer to work correctly. This supports adding markers to existing clusters better. 2012-07-20 14:07:31 +12:00
danzel 003fceab14 removeLayer works now. addLayer still needs fixing to be clustering aware 2012-07-20 11:49:40 +12:00
danzel 603e985d58 removeLayer mostly works! Sometimes the resulting markers don't end up in parent clusters. (Hit remove 1 lots then zoom out lots) 2012-07-20 11:30:20 +12:00
danzel eb94ab1959 Rename _recursivelyAddChildMarker -> _recursivelyAddLayer 2012-07-20 11:11:28 +12:00
danzel f5cac38268 Get addLayer after clustering going. _recursivelyAddChildMarker still has some TODOs that need doing 2012-07-20 09:58:31 +12:00
danzel 6a55a17e95 Starting on addLayer after clustering, mostly works now, stops working after a zoom out 2012-07-20 09:40:34 +12:00
danzel d1b1df7cae A few small bug fixes and code tidy ups. Add/Remove marker (after clustering) should be all that is broken now. 2012-07-20 09:15:02 +12:00
danzel a1bab91ebd Fix _recursivelyRemoveChildrenAndAddNowVisibleMarkers 2012-07-19 16:49:33 +12:00
danzel ca214556d6 Working on animated zoom in. mostly works 2012-07-19 15:32:50 +12:00
danzel 17186c36f7 Get non animated versions going again 2012-07-19 13:35:54 +12:00
danzel 04c4956751 Fix zoom but don't change workaround 2012-07-19 13:26:22 +12:00
danzel 6766b1a875 Removing commented out bits etc 2012-07-19 13:23:47 +12:00
danzel a7d784b105 _recursivelyAnimateChildrenIn -> _recursively 2012-07-19 12:03:34 +12:00
danzel 21df359613 Fix multi zoom out not positioning and removing some children correctly 2012-07-19 11:57:47 +12:00
danzel 0de9245d70 Move _recursivelyAnimateChildrenInAndAddSelfToMap _recursivelyBecomeVisible to use _recursively 2012-07-19 11:51:58 +12:00
danzel de35c09a01 Add _recursively and refactor _recursivelyRemoveChildrenFromMap to use it 2012-07-19 11:43:02 +12:00
danzel 7e75986edf Fix up some zoom out issues including when the icon doesn't change (100 -> 100) 2012-07-19 11:16:44 +12:00