danzel
116a1876eb
Update build
2012-09-03 09:24:03 +12:00
danzel
c9a45984d7
singleMarkerMode in the readme
2012-09-03 09:23:39 +12:00
danzel
40441542d2
Fixups for singleMarkerMode with new cluster icon bits
2012-09-03 09:22:28 +12:00
Dave Leaver
068d323b9c
Merge pull request #42 from awinograd/master
...
Add an option to allow single markers to be clusters themselves
2012-09-02 14:17:15 -07:00
Alec Winograd
068f9f9f8a
Add option singleMarkerMode
...
Defaults to false. Setting to true causes markers
to appear as clusters with count 1. This is done
by overriding the Marker's icon to the Group's
iconCreateFunction.
2012-08-31 23:09:07 -07:00
Alec Winograd
ce81e394c6
Revert first changes as discussed for new approach
...
Revert "Utilize option to clusterSingleMarkers"
This reverts commit 208c85ca79 .
Revert "Add option to clusterSingleMarkers"
This reverts commit 9ad78ab809 .
2012-08-31 12:25:52 -07:00
danzel
a5cb8531af
Update build
2012-08-30 11:45:52 +12:00
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
Alec Winograd
208c85ca79
Utilize option to clusterSingleMarkers
2012-08-20 16:33:08 -07:00
Alec Winograd
9ad78ab809
Add option to clusterSingleMarkers
2012-08-20 16:31:52 -07: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 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