Commit Graph
17185 Commits
Author SHA1 Message Date
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
vieron 104ee3220d updated dist 2012-09-09 14:32:49 +02:00
vieron b71b8727df gridster: moving down widgets under placeholder. Related to #4.
This solves the overlapping-blocks seen in the screencast provided by @daniel-nelson. I've captured another one trying to reproduce the same movements with this commit applied: http://www.screenr.com/g7J8
2012-09-09 14:21:31 +02:00
vieron dc61567454 collision: ignore min_area in collision sorting
This doesn't work with grids with small values in widget_base_dimensions and widget_margins options.
2012-09-08 13:58:47 +02: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
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
vieron 60fbb1cbf2 updated dist 2012-08-20 21:06:38 +02:00
vieron 9402f202b8 update coords for the new widget size.
Reported by @bmla in https://github.com/ducksboard/gridster.js/commit/dbf98cc9bdc#commitcomment-1735360
2012-08-20 21:06:21 +02:00
Andrew Dunkman 2b87032fad Updated README to point to github pages-hosted test file. 2012-08-20 13:04:55 -05:00
vieron 1086fe5b77 updated dist 2012-08-20 01:46:52 +02:00
vieron dbf98cc9bd Resize widgets feature. Closes #15.
By popular demand, now gridster allows to change the size of widgets dynamically.

Usage.
- gridster_api.resize_wiget($widget, [size_x], [size_y]);

E.g. (try in gridster.net):
    - gridster.resize_widget($('.gs_w:eq(3)'), 6);
    - gridster.resize_widget($('.gs_w:eq(3)'), 1, 4);

To do this, two new methods were added to gridster:

    - empty_cells(col, row, size_x, size_y, $exclude)
      Move down widgets in cells represented by the arguments col, row, size_x,
      size_y.

    - remove_empty_cells(col, row, size_x, size_y, $exclude)
      Move up widgets below cells represented by the arguments col, row, size_x,
      size_y.

Also, add_widget method supports specifying a row and column. This was easy
through empty_cells method. Related to #24. Thanks to @parkerd for the help!

The code should be improved and make it more reusable when the feature of
"move widgets dynamically" is added (related to #20).
2012-08-20 01:31:34 +02: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