Commit Graph
173 Commits
Author SHA1 Message Date
danzel 492d8a0d27 Support adding markers while we aren't on the map. 2012-08-20 10:38:59 +12:00
danzel 439394c1d8 Update build 2012-08-20 10:19:40 +12:00
danzel b392fb7913 Fix for jshint 2012-08-20 10:19:28 +12:00
danzel 9a6e7004b0 Respect disableClusteringAtZoom when adding individual layers 2012-08-20 10:18:34 +12:00
danzel 0b6b7ed560 Add options.disableClusteringAtZoom. Only implemented for initial clustering currently 2012-08-20 10:00:31 +12:00
danzel 3e69cab1f2 Remove included leaflet, no longer required 2012-08-13 10:40:24 +12:00
danzel 834e9023e5 Update build 2012-08-13 10:40:04 +12:00
danzel 80976df206 Update all examples to work and use the CDN leaflet 2012-08-13 10:39:38 +12:00
danzel 195340c8be Custom example doesn't need the default styles, just the MarkerCluster.css ones (for animations) 2012-08-13 10:15:13 +12:00
danzel fc1babc776 Increase default maxClusterRadius to look nicer with new centering changes. 2012-08-13 10:13:41 +12:00
danzel a498cd47c2 Clean up adding markers to existing clusters with the new centering changes 2012-08-13 10:13:41 +12:00
danzel 415497fdcf As we no longer move cluster we don't need to update them in the DistanceGrid as we cluster 2012-08-13 10:13:40 +12:00
Vladimir Agafonkin f3fddb835d use first point as centers while clustering, use weighted centers on display 2012-08-13 10:13:40 +12:00
Ryan Murphy 585ac5be60 Fixed custom example; needed updated 'src' links 2012-08-10 11:37:53 -05:00
danzel eee1aba847 Update Build 2012-08-10 16:05:57 +12:00
danzel aed2816986 Clone the LatLng rather than taking a reference so we don't break it when we edit it. 2012-08-10 16:05:49 +12:00
danzel 7b568d10e6 Merge remote-tracking branch 'mourner/cluster-centers' 2012-08-10 16:00:06 +12:00
danzel f9976ac8fc Update Build. 2012-08-10 15:58:57 +12:00
danzel 777c1d264c Fix up addLayer with the gridder optimizations. 2012-08-10 15:58:44 +12:00
mourner 17522d8fc3 cleanup code a bit 2012-08-09 23:12:30 +03:00
Vladimir Agafonkin 755cd3cb64 calculate point average as cluster center instead of bounds center 2012-08-09 18:10:20 +03:00
Vladimir Agafonkin 79737cdab5 remove DistanceGrid#replaceObject (not needed) 2012-08-09 17:02:37 +03:00
Vladimir Agafonkin 58aaf37924 improve performance 4-20 times with grid-based near neighbor search 2012-08-09 16:24:51 +03:00
danzel 8b42747690 Fix up styles for IE again, works better for 7/8 now. 2012-08-07 13:47:23 +12:00
danzel 1d88075769 Update the build 2012-08-07 11:32:18 +12:00
danzel 7254719ac6 Fix #27 for touch zoom 2012-08-07 11:31:39 +12:00
danzel c698e2ed54 Working on #27. This fixes the animation on desktop but not mobile. 2012-08-07 11:19:39 +12:00
danzel 3ef5afc11f Make clearLayers work when we aren't on the map. Fixes #26 2012-08-07 10:15:36 +12:00
danzel af61861f07 Update leaflet with master + https://github.com/danzel/Leaflet/tree/oldie-fixes 2012-08-02 11:37:42 +12:00
danzel 0a18edad12 Get rid of the transparent cluster bg in IE CSS, breaks when a cluster is clicked. They can live without it 2012-08-02 11:06:28 +12:00
danzel b1ce2775b6 Add some styles so the poor people who use IE <= 8 can see the clusters (Surprised no one has complained about this yet!) 2012-08-02 10:59:54 +12:00
danzel fd3166fe2e Add a mobile example 2012-08-02 10:28:44 +12:00
danzel a0d3ad92cf Update the build 2012-08-02 10:16:22 +12:00
danzel 755180b753 Add clearLayers implementation. Refs #26 2012-08-02 10:16:02 +12:00
danzel b54a767eec Add 0.4.2 requirement. 2012-08-02 09:07:17 +12:00
danzel eeb8f91042 Update the build 2012-08-01 15:17:51 +12:00
danzel 5b5d0a9a6c Partially fix the animation when a marker is added to an existing cluster. 2012-08-01 15:17:32 +12:00
danzel 1be9202f05 Revert back to updating the latlng of a marker while it is spiderfied so that popups created on markers that are spidferfied are in the right place. 2012-08-01 15:17:09 +12:00
danzel 603c40cab3 Update leaflet build with master + https://github.com/CloudMade/Leaflet/issues/861 2012-08-01 14:12:11 +12:00
danzel 94e3d4f6dd Update the build 2012-07-30 11:59:18 +12:00
danzel e0d2616925 Support being added and removed to the map 2012-07-30 11:59:05 +12:00
danzel f0414083dd Update build and update to build :) 2012-07-30 11:12:54 +12:00
danzel ff686786e4 Support removing markers down to 0. 2012-07-30 11:11:56 +12:00
danzel be9ff91a5b Support starting with 0 markers. 2012-07-30 11:07:13 +12:00
danzel b7cc2bf5c4 Update the build, hopefully that is all of the bugs for today :) 2012-07-27 16:00:42 +12:00
danzel fa1245d6a5 Be more careful tidying up _projCenter otherwise it is still set later and we fail at clustering randomly 2012-07-27 15:58:19 +12:00
danzel 238beee823 Fix another silly edge case: Spiderfy 2 markers, remove one from the clusterer, the other would disappear. 2012-07-27 15:38:08 +12:00
danzel ea5428ebfb Fix up removing a marker from the map while it is spiderfied. Fix up a place where markers were left with opacity 0. 2012-07-27 15:21:02 +12:00
danzel a446eb82bc Make jshint happy, update the build 2012-07-27 14:44:55 +12:00
danzel 8f3d4ce475 Use _setPos rather than using setLatLng so we don't change the internal _latlng, otherwise really bad things can happen as markers think they aren't where they are. 2012-07-27 14:43:08 +12:00