Commit Graph

  • 5d9b427801 Make everything work, add a custom example showing doing everything custom. danzel 2012-07-24 14:14:27 +12:00
  • 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. danzel 2012-07-24 13:46:35 +12:00
  • 602a5ae1d2 Make events for clusters start with cluster, clusterclick etc. danzel 2012-07-24 13:26:47 +12:00
  • a8dc5f315b Animate unspiderfying if supported :) Fixes #8 danzel 2012-07-24 11:51:28 +12:00
  • 94176bcf66 Tidy ups, comments. Probably works with canvas now (not tested) danzel 2012-07-24 11:37:28 +12:00
  • 9860dcbdf3 Get spiderLeg animations working. FF appears to have some issues with animating the markers. danzel 2012-07-24 11:18:28 +12:00
  • ffbe50b740 Add a currently unworking animation for the spider legs danzel 2012-07-24 11:04:25 +12:00
  • 813d38a09a Don't re-spiderfy if the same cluster is clicked twice danzel 2012-07-24 09:18:30 +12:00
  • 4eb679fb78 documentation fixes vieron 2012-07-23 22:51:04 +02:00
  • aa939d8bf7 updated docs and dist vieron 2012-07-23 22:08:09 +02:00
  • 33b8f206cf updated Gridster doc and code style corrections vieron 2012-07-23 22:07:43 +02:00
  • 7e8ce8dd0a Coords constructor documentation vieron 2012-07-23 21:50:15 +02:00
  • 7ae385ea05 some small documentation for draggable class vieron 2012-07-23 21:49:53 +02:00
  • 00e7c46b31 avoid calls to empty functions in defaults object vieron 2012-07-23 21:48:25 +02:00
  • bf2ee67450 only start drag with right click vieron 2012-07-23 21:46:27 +02:00
  • 981895eab4 default value for css transitions is: "all 0s" not "none" vieron 2012-07-23 21:44:51 +02:00
  • f650da8586 fixing tab spaces and some documentation vieron 2012-07-23 21:44:03 +02:00
  • c998cb49b3 updated docs and dist vieron 2012-07-23 15:15:26 +02:00
  • f0a50649d1 removing playing-revert class when gridster is disabled vieron 2012-07-23 15:14:53 +02:00
  • d1b7009fc9 improved and more robust css vieron 2012-07-23 11:04:33 +02:00
  • 3e1d005585 don`t recalculate offset if it is passed to the update method vieron 2012-07-23 11:03:06 +02:00
  • 0446186c98 utils: throttle, debounce vieron 2012-07-23 11:02:18 +02:00
  • 288df54e86 basic jQuery draggable plugin vieron 2012-07-23 11:01:48 +02:00
  • 5edfe0a488 new methods, fixes and improvements: vieron 2012-07-23 11:01:05 +02:00
  • 1507974e07 collision: don't calculate player coords if we have it vieron 2012-07-23 10:53:57 +02:00
  • ab5714fe9d Add a non animated version of Spiderfier danzel 2012-07-23 16:14:47 +12:00
  • eebf8e9e81 Spiderfier basically done. Need to add a non animated version for suckers danzel 2012-07-23 16:08:44 +12:00
  • 14070bf4ba Gotta be sexy :) danzel 2012-07-23 15:48:31 +12:00
  • 45d9f8f841 Starting on spidifier based on https://github.com/jawj/OverlappingMarkerSpiderfier-Leaflet (Thanks jawj!) danzel 2012-07-23 15:44:26 +12:00
  • 6e81c385e1 Do backwards loops for some tiny performance win. danzel 2012-07-23 14:38:24 +12:00
  • f048d8ad07 Remove console.log danzel 2012-07-23 14:11:20 +12:00
  • 69b62e3250 Try keep around 2 levels on top of what we need so the tree is more efficient. Fixes #11 danzel 2012-07-23 14:10:35 +12:00
  • 60a873a131 updated dist vieron 2012-07-20 15:48:03 +02:00
  • 18b620f6ce the remove_widget callback must be inside the fadeout callback vieron 2012-07-20 15:47:39 +02:00
  • 0b310de6e7 updated dist vieron 2012-07-20 14:03:32 +02:00
  • fbeb2ac05c fixed add_widget method vieron 2012-07-20 14:03:24 +02:00
  • 9dbad2b29e remove_widget accepts a callback as second argument vieron 2012-07-20 14:03:03 +02:00
  • 7624182bf4 updated docs and diet vieron 2012-07-20 11:06:26 +02:00
  • 0e03a05435 namespaced gridster events: dragstart, dragstop, drag vieron 2012-07-20 11:04:54 +02:00
  • c2609c7dfb get moveEnd working again! danzel 2012-07-20 17:17:31 +12:00
  • 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 danzel 2012-07-20 16:59:56 +12:00
  • 569b64fc3c Trash debug bits danzel 2012-07-20 16:43:00 +12:00
  • 96b4d8b73e Implement generating new clusters as required when zooming down danzel 2012-07-20 16:42:39 +12:00
  • 643757df40 Give the everything example add/remove buttons danzel 2012-07-20 16:27:50 +12:00
  • d8317c04ba Pass the right zoom level in so that clustering happens at the right scale danzel 2012-07-20 16:27:33 +12:00
  • 55d221c9e1 Fix-Fix double childCount adding bug. Fix broken icon after add bug danzel 2012-07-20 16:15:07 +12:00
  • a944d7de44 Fix child counting bug danzel 2012-07-20 16:03:14 +12:00
  • fb80032942 Refactor out the animation code and add a non animated addLayer animation danzel 2012-07-20 15:35:22 +12:00
  • bd4780cc1e _recursivelyAddLayer works, possible still some small bugs. danzel 2012-07-20 15:22:17 +12:00
  • a39f71fad5 More work towards _recursivelyAddLayer. Still some bugs danzel 2012-07-20 14:44:21 +12:00
  • cc677f0ce9 Simplify cluster function danzel 2012-07-20 14:20:46 +12:00
  • 96e3a8cbf7 Fixing up _recursivelyAddLayer to work correctly. This supports adding markers to existing clusters better. danzel 2012-07-20 14:07:31 +12:00
  • 003fceab14 removeLayer works now. addLayer still needs fixing to be clustering aware danzel 2012-07-20 11:49:40 +12:00
  • 603e985d58 removeLayer mostly works! Sometimes the resulting markers don't end up in parent clusters. (Hit remove 1 lots then zoom out lots) danzel 2012-07-20 11:30:20 +12:00
  • eb94ab1959 Rename _recursivelyAddChildMarker -> _recursivelyAddLayer danzel 2012-07-20 11:11:28 +12:00
  • f5cac38268 Get addLayer after clustering going. _recursivelyAddChildMarker still has some TODOs that need doing danzel 2012-07-20 09:58:31 +12:00
  • 6a55a17e95 Starting on addLayer after clustering, mostly works now, stops working after a zoom out danzel 2012-07-20 09:40:34 +12:00
  • d1b1df7cae A few small bug fixes and code tidy ups. Add/Remove marker (after clustering) should be all that is broken now. danzel 2012-07-20 09:15:02 +12:00
  • f2356c8a08 updated docs and dist vieron 2012-07-19 16:45:01 +02:00
  • 79bec6897f using next_positions inside add_widget method vieron 2012-07-19 16:44:49 +02:00
  • e610465a27 updated docs and dist vieron 2012-07-19 16:10:38 +02:00
  • 97074001bb fixed a bug that caused next_positions method redefinition vieron 2012-07-19 16:10:31 +02:00
  • d4145e873c updated doc and dist vieron 2012-07-19 15:56:12 +02:00
  • 2bcd943fff new method to get the next position of a new widget vieron 2012-07-19 15:56:01 +02:00
  • 15a2dba98e updated docs and dist vieron 2012-07-19 11:16:29 +02:00
  • b83d993d4b recalculate faux grid offsets when browser is resized vieron 2012-07-19 11:08:10 +02:00
  • a1bab91ebd Fix _recursivelyRemoveChildrenAndAddNowVisibleMarkers danzel 2012-07-19 16:49:33 +12:00
  • ca214556d6 Working on animated zoom in. mostly works danzel 2012-07-19 15:32:50 +12:00
  • 17186c36f7 Get non animated versions going again danzel 2012-07-19 13:35:54 +12:00
  • 04c4956751 Fix zoom but don't change workaround danzel 2012-07-19 13:26:22 +12:00
  • 6766b1a875 Removing commented out bits etc danzel 2012-07-19 13:23:47 +12:00
  • a7d784b105 _recursivelyAnimateChildrenIn -> _recursively danzel 2012-07-19 12:03:34 +12:00
  • 21df359613 Fix multi zoom out not positioning and removing some children correctly danzel 2012-07-19 11:57:47 +12:00
  • 0de9245d70 Move _recursivelyAnimateChildrenInAndAddSelfToMap _recursivelyBecomeVisible to use _recursively danzel 2012-07-19 11:51:58 +12:00
  • de35c09a01 Add _recursively and refactor _recursivelyRemoveChildrenFromMap to use it danzel 2012-07-19 11:43:02 +12:00
  • 7e75986edf Fix up some zoom out issues including when the icon doesn't change (100 -> 100) danzel 2012-07-19 11:16:44 +12:00
  • 3f668910bf Fix up zoom out not always removing child clusters. danzel 2012-07-19 10:56:18 +12:00
  • 6b0e08b534 Fix animated multi zoom out danzel 2012-07-19 10:35:13 +12:00
  • 1fcec54dcf Getting animated animationZoomOut working. Still breaks on a multizoom danzel 2012-07-19 10:32:25 +12:00
  • 7e1e5e5217 minified versions vieron 2012-07-18 21:49:08 +02:00
  • 31028a3975 fixed compatibility issues with the helper:clone option of Draggable vieron 2012-07-18 21:48:53 +02:00
  • 6fe6f720da documentation typos vieron 2012-07-18 19:08:36 +02:00
  • f4a9ae80d8 links to downloads and others vieron 2012-07-18 19:07:59 +02:00
  • 257914ee99 initial commit vieron 2012-07-18 18:31:44 +02:00
  • 92abbfd3b2 Work on refactoring. Zoom in/out without animations works (Unless you zoom below the initial level). Deleting old code is so good! danzel 2012-07-18 17:57:00 +12:00
  • 898ae51527 Move _cluster changes out of _cluster, so that _cluster is just clustering danzel 2012-07-18 16:25:01 +12:00
  • 5bca61db7f Starting to refactor to keep everything only in a tree. Currently zoom out on IE works danzel 2012-07-18 15:05:58 +12:00
  • 0a29135aec Working towards fixing adding/removing. Think I'm going to have to bite the bullet and tree this up harder. danzel 2012-07-18 14:09:15 +12:00
  • 12e6eb0133 Working on fixing adding/removing. This fixes the case where you have 2 markers clustered, then zoom out twice, then delete one. danzel 2012-07-18 13:33:45 +12:00
  • e0bcc5e56c Readme/Example updates danzel 2012-07-18 11:55:21 +12:00
  • db3b7f2fc2 Tidy up examples. Add a -everything example which shows boundarys on mouse over and zooms on click. danzel 2012-07-18 11:46:51 +12:00
  • d8219a81ef Refactor QuickHull to use L.LatLng internally to save copying everything back and forth danzel 2012-07-18 11:37:33 +12:00
  • 9da6156fd4 tidy up JS danzel 2012-07-18 11:01:54 +12:00
  • f03acfaecf Should probably have this code compiling before I go refactoring danzel 2012-07-18 11:00:05 +12:00
  • e32c4de14c Add QuickHull and use it for calculating convex hulls. (From http://en.literateprograms.org/Quickhull_(Javascript)?oldid=18434 - Referenced in code) Needs tidying up to use LatLng objects rather than having to change back and forth danzel 2012-07-18 10:52:47 +12:00
  • 71662891aa Don't fade between 2 clusters when zooming if they are the same danzel 2012-07-17 16:52:59 +12:00
  • 808b58738f Update leaflet (https://github.com/CloudMade/Leaflet/pull/810) danzel 2012-07-17 15:12:56 +12:00
  • d29edf7e73 Fade out old clusters on zoom in danzel 2012-07-17 15:09:34 +12:00
  • 8f97ecf963 Fade markers in during a zoom in. danzel 2012-07-17 14:43:44 +12:00
  • 4e5c29f28a Add an example for zoomToBounds danzel 2012-07-17 14:09:45 +12:00