Commit Graph
245 Commits
Author SHA1 Message Date
danzel c077de14b5 Add test case for #65 2012-09-20 10:55:57 +12:00
danzel 1afb83b91d For animated zoomouts sometimes we'll zoom so that the previously visible bounds aren't fully contained within the new bounds, in those cases we need to remove the markers that were in the previous bounds but not the new bounds from the map as the normal animation won't take care of them. Fixes #63 2012-09-20 10:39:00 +12:00
danzel 8753dc0ab2 Add test case for #63 2012-09-20 10:23:34 +12:00
danzel b50b287c92 Fix #64 and add a testcase 2012-09-20 10:12:01 +12:00
danzel c0871d7cb7 Build update and JSHint fixes. 2012-09-14 10:43:17 +12:00
danzel 4b12ba6274 Add another edge test case and fix. 2012-09-14 10:41:37 +12:00
danzel 4ef14cb5f4 Update build 2012-09-13 17:21:00 +12:00
danzel cc8c6b5ff1 Re do the zoom animation fixes. This should fix it properly. (There was some minor visual errors when having 2 markers and doing a fast zoom out, the cluster would appear instantly instead of fading in) 2012-09-13 17:20:40 +12:00
danzel 3a2578c056 Update build 2012-09-13 11:08:07 +12:00
danzel 51720f071b Fix up the non animated versions too 2012-09-13 11:07:56 +12:00
danzel 51a8d0ce32 Update build 2012-09-13 11:03:06 +12:00
danzel bb472a78fb Fixing up animated zoom in/out not removing markers it is meant to 2012-09-13 11:01:34 +12:00
danzel 96aeac0496 Fix up adding just 1 marker. Fixes #60 2012-09-13 09:45:14 +12:00
danzel 7a500e5f03 Update Build 2012-09-12 17:49:59 +12:00
danzel 5128c9c919 Fix up bounds recalculation, previously if you removed a marker the bounds wouldn't change 2012-09-12 17:49:48 +12:00
danzel 4d51105c44 Don't barf if we are asked to remove a layer that we don't have 2012-09-12 17:40:43 +12:00
danzel 7b065bd493 Update build 2012-09-12 11:17:34 +12:00
danzel d4417130eb woops, map variable 2012-09-12 11:17:24 +12:00
danzel a0df0e3db3 Work around browsers without zoomAnimation not firing zoomstart. Makes spiderfied packs disappear on zoomout 2012-09-12 11:17:03 +12:00
danzel 07a11582d3 Use events rather than hacky setTimeouts to make zoomToShowLayer more reliable 2012-09-12 11:13:02 +12:00
danzel 122571d50c Add a zoomtoshowlayer example 2012-09-11 16:29:56 +12:00
danzel 9163fc6080 Update build 2012-09-11 16:24:40 +12:00
danzel 8f4dde032b Add zoomToShowLayer 2012-09-11 16:24:05 +12:00
danzel 81e5456759 Update Build 2012-09-11 15:33:22 +12:00
danzel 1bda00ac3d Tiny tidy ups 2012-09-11 15:33:03 +12:00
danzel 6235c283f2 bit more dead code 2012-09-11 15:25:53 +12:00
danzel 74e0218dcc jslint tidy ups, dead code removal 2012-09-11 15:23:15 +12:00
danzel c001bfb5f6 Make this a forwards loop so that a clear+re-add creates the same clusters 2012-09-11 15:11:15 +12:00
danzel ac504d69f6 working clearLayers 2012-09-11 14:51:09 +12:00
danzel fa4d9913f6 New, working removeLayer code 2012-09-11 14:43:26 +12:00
danzel 761d265732 Working on removeLayer, works so long as no cluster ever needs removing 2012-09-11 11:28:14 +12:00
danzel c683bac226 Fix up adding markers animatedly. Trash some old not used any more code 2012-09-11 11:03:35 +12:00
danzel 3ea3d08aed Get addLayer (after adding to map) working when using animateAddingMarkers:false 2012-09-11 10:10:46 +12:00
danzel ed28eedfb1 Fix up MarkerCluster latlng saving/updating 2012-09-10 17:17:17 +12:00
danzel 824a31deaf Refactoring EVERYTHING to work towards #43
DistanceGrid no longer messes with the things added to it, means that markers can be in multiple DistanceGrids without trouble.
Heaps of dead code left in, only the basics work at the moment.
Cluster icon position is wrong at the bottom zoom level (real world 388), needs fixing.
2012-09-10 17:11:41 +12:00
danzel 6fe95a3a42 Use the _wLatLng of a child cluster for its weighting. Keep the same cLatLng as our child clusters. 2012-09-10 16:09:45 +12:00
danzel 0f9a6b0176 Update build 2012-09-07 14:10:11 +12:00
danzel fb165b18b1 Fix and test for #49, clearLayers wasn't unspiderfying. 2012-09-07 14:10:05 +12:00
danzel 7ae3e1ad42 Update build 2012-09-06 16:20:02 +12:00
danzel dc16362b6c everything example should be animated 2012-09-06 16:19:54 +12:00
danzel 336d7423d7 Add a test case for #51 and #43 2012-09-06 16:12:58 +12:00
danzel 22063a2831 Add animateAddingMarkers. It set to true (default false) then adding markers after adding the MarkerClusterGroup to the map will animate them in (like previous behaviour). If false they will just be directly added to clusters with no animation which is better for performance especially when bulk adding markers to the map. Refs #51 2012-09-06 16:12:02 +12:00
danzel fc881ba769 Fix up #53, #54 2012-09-06 15:32:47 +12:00
danzel b0174aa1a1 Add a test case for #53 #54. 2012-09-06 15:32:29 +12:00
danzel 0c6463bfc6 Document maxClusterRadius 2012-09-06 09:41:27 +12:00
Dave Leaver 8ef762e001 Make Other Options more readable round 2 2012-09-03 10:37:51 +12:00
Dave Leaver ade547ac88 Make other options section more readable 2012-09-03 10:36:56 +12:00
danzel f65634943f Update build. 2012-09-03 10:35:13 +12:00
danzel 374e74f78a Test if a marker is already in the cluster before adding it. You can skip this (for performance) by setting the skipDuplicateAddTesting option. Testing is only done after the MarkerClusterGroup has been added to the map, so any duplicates added before then will not be caught. 2012-09-03 10:34:59 +12:00
danzel 2ccd15bd43 Add hasLayer support. Not super efficient n(log n) IIRC, but at least we have one! Refs #44 2012-09-03 09:53:56 +12:00