[Pkg-javascript-commits] [leaflet-markercluster] 206/479: everything example should be animated
Jonas Smedegaard
dr at jones.dk
Thu Oct 16 16:00:30 UTC 2014
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository leaflet-markercluster.
commit dc16362b6c7afb34b2cebd250b4f592ed39c9c25
Author: danzel <danzel at localhost.geek.nz>
Date: Thu Sep 6 16:19:54 2012 +1200
everything example should be animated
---
example/marker-clustering-everything.html | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/example/marker-clustering-everything.html b/example/marker-clustering-everything.html
index 7aac297..f63b0bb 100644
--- a/example/marker-clustering-everything.html
+++ b/example/marker-clustering-everything.html
@@ -29,7 +29,7 @@
var map = new L.Map('map', {center: latlng, zoom: 15, layers: [cloudmade]});
- var markers = new L.MarkerClusterGroup();
+ var markers = new L.MarkerClusterGroup({ animateAddingMarkers : true });
var markersList = [];
function populate() {
@@ -55,6 +55,9 @@
populate();
map.addLayer(markers);
+ for (var i = 0; i < 100; i++) {
+ markers.addLayer(markersList[i]);
+ }
//Ugly add/remove code
L.DomUtil.get('populate').onclick = function () {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/leaflet-markercluster.git
More information about the Pkg-javascript-commits
mailing list