Commit Graph
147 Commits
Author SHA1 Message Date
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
danzel 4e4cba28cb unspiderfy before adding/removing a layer 2012-07-27 14:01:30 +12:00
danzel f53b11d0ea Don't spiderfy/unspiderfy while a zoom is going on 2012-07-27 13:59:46 +12:00
danzel fab3374e3f Update build 2012-07-26 16:20:06 +12:00
danzel a0f4a18df8 For mobile set the expanded bounds to just the screen, this means there is only 1/9th the clusters on screen which gives much better performance. During a zoom/drag on mobile the map tiles aren't updating anyway, so this fits with them. Refs #19 2012-07-26 13:10:10 +12:00
danzel f995563c42 Update the build 2012-07-26 12:03:02 +12:00
danzel 9ade8eb10b Handle zooming to the same zoom level you are already on (touchzoom on iOS can cause this) 2012-07-26 12:02:12 +12:00
danzel d0d883c56b Fix up spiderfier breaking animation counting 2012-07-26 11:44:37 +12:00
danzel f07e684405 Fix these, woops 2012-07-26 11:33:28 +12:00
danzel 505bc20187 Update readme for .default changes. Fixes #14 2012-07-26 11:22:10 +12:00
danzel 3449fabc8c Move defaults in and make them proper options like in leaflet. Removes silly .Default file 2012-07-26 11:18:12 +12:00
danzel b2e4fe2a81 Update readme for new examples 2012-07-26 10:51:50 +12:00
danzel d64ec9191b Add some (much) larger examples. IE bombs out on 50000 usually, but chrome handles them all fine ;) 2012-07-26 10:49:44 +12:00
danzel 3797a2046b Fix and update the build 2012-07-25 16:44:42 +12:00
danzel fee3c02705 Fix removeLayer updating count on icon 2012-07-25 16:35:19 +12:00
danzel 43a1742b89 Fix addLayer (was broken since making everything in to a tree) 2012-07-25 16:32:23 +12:00
danzel 7ceb7b01db Working towards getting addLayer/removeLayer working again 2012-07-25 15:33:57 +12:00
danzel 7537fb0986 Replace setTimeout(..., 0) calls with explicit forceLayout calls, tidier code. 2012-07-25 14:03:23 +12:00
danzel fbd46fd2b8 Update build 2012-07-25 11:20:44 +12:00
danzel 9615f5622c By default don't show marker cluster outlines while in a zoom animation, in firefox you could end up with random outlines showing during a zoom which looked dumb 2012-07-25 11:20:31 +12:00
danzel 8f03183687 Add a built version! 2012-07-25 10:53:38 +12:00
danzel 9a650502be Make the built version work and use it for some of the samples 2012-07-25 10:53:27 +12:00
danzel 6ac3974ce8 Move css files 2012-07-25 10:49:02 +12:00
danzel 2d71f7d8ef Fixes from jshint 2012-07-25 10:47:22 +12:00
danzel b104ace6f8 Add build scripts from leaflet updated for our files. 2012-07-25 10:47:00 +12:00
danzel 6992ce1f64 Optimize the realworld data storage 2012-07-25 09:44:02 +12:00
danzel 72bf992cb4 _clusterOne should use cluster diameter for creating initial clusters rather than radius. 2012-07-25 09:36:58 +12:00