Commit Graph
296 Commits
Author SHA1 Message Date
danzel 74b9b9ba84 Update build 2012-12-06 09:47:51 +13:00
danzel 13e71f5a85 Add eachChildLayer, an eachLayer implementation. We cannot override eachLayer as we have different behaviour. Doing so makes us add all makers to the map always which is dumb :(
Fixes #102
2012-12-06 09:47:31 +13:00
danzel f9539fed32 Update build 2012-12-05 11:30:14 +13:00
danzel 1c369e268e Document spiderfyDistanceMultiplier 2012-12-05 11:30:00 +13:00
danzel bb92b17b20 Add options.spiderfyDistanceMultiplier, allows making spiderfied markers go futher away. Fixes #100 2012-12-05 11:28:54 +13:00
danzel 290df23822 Update build 2012-11-22 17:05:54 +13:00
danzel f875421fc4 Fix up some bugs that happen when removing and adding a MarkerClusterGroup from the map.
Was leaving layers in _layers which meant they'd get added again when we were re-added. Wasn't unbinding our events from almost anything.
Fixes #94
2012-11-22 17:05:44 +13:00
danzel f00019b288 Update Build 2012-11-14 09:58:30 +13:00
danzel 9fb345543a Handle removeLayers([]) where some elements aren't in the MarkerClusterGroup 2012-11-14 09:58:22 +13:00
danzel f72bb13324 Leaflet 0.4.4 -> 0.4.5 2012-11-13 14:36:21 +13:00
danzel 37d4f369a8 Update build 2012-11-09 15:53:34 +13:00
danzel 17f32ab1f8 When initially adding layers, skip layers that are already added. Fixes adding the same layer multiple times before adding the MarkerClusterGroup to the map. Refs #44 2012-11-09 15:53:21 +13:00
danzel e6b67b0b39 Update build 2012-11-01 09:45:37 +13:00
danzel eb8b2803f5 Fix formatting in bug 2012-11-01 09:45:16 +13:00
danzel ef2a51235e Unset layer.__parent in removeLayers as well as removeLayer. Refs #44 2012-11-01 09:45:04 +13:00
danzel bef1dbb33e Feature Detect SVG Animation and only use it if available. IE10 does not support it. Fixes #86 2012-11-01 09:32:51 +13:00
danzel 315c2c8c50 Update changelog and build 2012-10-19 10:22:58 +13:00
danzel 341c607c1b Tidy ups from merged commits 2012-10-19 10:16:39 +13:00
Duncan Parkesanddanzel 5719cb94ff Fix issue #79.
When a MarkerClusterGroup has been on a map, but isn't any longer,
we still need to clear out its markers.
(cherry picked from commit 2a90a86326aee1afd0392efd019d9cdb3f6dd0d0)

Conflicts:

	dist/leaflet.markercluster.js
2012-10-19 10:14:31 +13:00
Duncan Parkesanddanzel 1f09009349 Fix addLayers not working with singleMarkerMode.
(cherry picked from commit 02c75f164f1bb85f61329e0f3e89b0dc527301ee)

Conflicts:

	dist/leaflet.markercluster.js
2012-10-19 10:12:51 +13:00
danzel 9e2581f544 Update build 2012-10-19 10:08:35 +13:00
danzel 94a50d9654 Add a geojson example 2012-10-19 10:08:26 +13:00
danzel e3ca8eb153 Correct getBounds when not on the map 2012-10-19 10:07:42 +13:00
danzel ae3c859e65 Implement getBounds explicitly so it actually works. Thanks @2803media for reporting. Fixes #84 2012-10-19 09:32:40 +13:00
danzel c6b4122967 Update build 2012-10-17 15:16:45 +13:00
danzel 89d2236917 Remove __layer property on markers that are removed, otherwise on re-adding them we'll assume they are already added. Woops! 2012-10-17 15:16:27 +13:00
danzel f529500d42 Update build 2012-10-17 09:49:47 +13:00
danzel 7eaef8530a Replace _getExpandedVisibleBounds with lat/lng diff implementation as provided by andersarstrand in #74. Should improve behaviour with custom projections 2012-10-17 09:49:35 +13:00
danzel 6f5ee732b0 Add a changelog 2012-10-11 11:34:46 +13:00
danzel 84c2faf235 Update build 2012-10-11 11:22:01 +13:00
danzel 1cc375d324 Make removeLayers when not on the map a bit less wasteful 2012-10-11 10:45:16 +13:00
danzel 5064f6e8fc Update readme with notes on removing layers. 2012-10-11 10:45:02 +13:00
danzel 1d1f3de244 Update build 2012-10-11 10:23:24 +13:00
danzel 8432f0e7c2 Remove skipDuplicateAddTesting (as hasLayer is now efficient!). Make hasLayer work when we haven't been added to the map yet 2012-10-11 10:23:10 +13:00
danzel a1a2a99519 Make add-1000-after use addLayers to be even faster 2012-10-11 10:15:58 +13:00
danzel da090160c7 addLayers/removeLayers in the readme. Refs #59 2012-10-11 10:13:08 +13:00
danzel d5a7fd003b Comments 2012-10-11 10:06:50 +13:00
danzel 0823d6eaf6 Add removeLayers bulk removing method. Not quite as good as addLayers, but still faster than one at a time. 2012-10-11 10:06:05 +13:00
danzel 9dab59f175 Add addLayers, takes an array of markers and adds them in bulk for awesome performance. TODO: Docs+Example. Refs #59 2012-10-10 17:18:03 +13:00
danzel 5d31d7c610 Update build 2012-09-28 09:37:35 +12:00
danzel 5d8b11c94d When adding layers, don't add them to the map unless they are in the visible bounds. Fixes #69 2012-09-28 09:37:10 +12:00
danzel 9c4c4f9a25 Add a test case for #69 2012-09-28 09:27:21 +12:00
danzel b97def88f9 Fix up SVG Detection, allows us to work with canvas. Fixes #67 2012-09-28 09:14:06 +12:00
danzel d13b6758e1 Update build 2012-09-25 13:41:09 +12:00
danzel 54335d1a60 Tidy up readme, add polygonOptions 2012-09-25 13:40:55 +12:00
Dave Leaver 41237f6efb Merge pull request #68 from yohanboniface/polygonOptions
Add an option to MarkerClusterGroup to pass options to L.Polygon
2012-09-24 18:34:29 -07:00
Yohan Boniface 1de878677f Add an option to MarkerClusterGroup to pass options to the created L.Polygon
It could be useful for example to customize the color and fillColor.
2012-09-25 01:11:07 +02:00
danzel d4a06651bb Update build 2012-09-20 11:29:21 +12:00
danzel 68401741f1 make zoomToShowLayer choose a random marker 2012-09-20 11:28:40 +12:00
danzel a1575e10c1 build fixes 2012-09-20 11:28:11 +12:00