Commit Graph
186 Commits
Author SHA1 Message Date
danzel a1c55be696 Instead of passing childCount to iconCreateFunction, pass the markerCluster instead. Allows the user more flexibility with deciding on the icon. 2012-08-30 11:45:44 +12:00
danzel 8e9aefb6d4 Add an example showing disableClusteringAtZoom 2012-08-27 14:16:56 +12:00
danzel 4227aa5523 Add an example using disableClusteringAtZoom 2012-08-27 14:12:31 +12:00
danzel 58f184346d re-do the build without the console.log 2012-08-27 14:03:43 +12:00
danzel a0f0f1b1df Update Build 2012-08-27 13:55:55 +12:00
danzel 6c4c0f1e33 Fix up crashes removing the MarkerClusterGroup from the map in a zoomstart/end handler. Crashes could come still happen depending on the order the handlers were called. Refs #36 2012-08-27 13:55:44 +12:00
danzel 863b07ea42 Update build 2012-08-27 13:33:03 +12:00
danzel 02a869bf60 Fix a crash that can happen if you remove the layer from the map while a zoom animation is going on. Fixes #36 2012-08-27 13:32:36 +12:00
danzel 1ade0834b8 Update the build 2012-08-27 13:03:21 +12:00
danzel c1aff5cba2 Make getNearObject always return the closest point to make the clusters do stupid things less often 2012-08-27 13:02:45 +12:00
danzel 8ac19a8f65 Add enough layers support that you can use geojson to add your maptags. fixes #45 refs #13 2012-08-27 11:47:51 +12:00
danzel 32355c2f24 Update build. 2012-08-20 10:59:37 +12:00
danzel 167ef4aa1e Remove coverage polygon from map when we are removed from the map. Fixes #38 2012-08-20 10:59:27 +12:00
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 Agafonkinanddanzel 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