Browse Source

added node clustering

pull/3/head
rscmbbng 11 years ago
parent
commit
25c9267af1
  1. 38
      web/js/cluster/MarkerCluster.Default.css
  2. 22
      web/js/cluster/MarkerCluster.Default.ie.css
  3. 6
      web/js/cluster/MarkerCluster.css
  4. 2015
      web/js/cluster/leaflet.markercluster-src.js
  5. 6
      web/js/cluster/leaflet.markercluster.js

38
web/js/cluster/MarkerCluster.Default.css

@ -0,0 +1,38 @@
.marker-cluster-small {
background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div {
background-color: rgba(110, 204, 57, 0.6);
}
.marker-cluster-medium {
background-color: rgba(241, 211, 87, 0.6);
}
.marker-cluster-medium div {
background-color: rgba(240, 194, 12, 0.6);
}
.marker-cluster-large {
background-color: rgba(253, 156, 115, 0.6);
}
.marker-cluster-large div {
background-color: rgba(241, 128, 23, 0.6);
}
.marker-cluster {
background-clip: padding-box;
border-radius: 20px;
}
.marker-cluster div {
width: 30px;
height: 30px;
margin-left: 5px;
margin-top: 5px;
text-align: center;
border-radius: 15px;
font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
}
.marker-cluster span {
line-height: 30px;
}

22
web/js/cluster/MarkerCluster.Default.ie.css

@ -0,0 +1,22 @@
/* IE 6-8 fallback colors */
.marker-cluster-small {
background-color: rgb(181, 226, 140);
}
.marker-cluster-small div {
background-color: rgb(110, 204, 57);
}
.marker-cluster-medium {
background-color: rgb(241, 211, 87);
}
.marker-cluster-medium div {
background-color: rgb(240, 194, 12);
}
.marker-cluster-large {
background-color: rgb(253, 156, 115);
}
.marker-cluster-large div {
background-color: rgb(241, 128, 23);
}

6
web/js/cluster/MarkerCluster.css

@ -0,0 +1,6 @@
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
-webkit-transition: -webkit-transform 0.2s ease-out, opacity 0.2s ease-in;
-moz-transition: -moz-transform 0.2s ease-out, opacity 0.2s ease-in;
-o-transition: -o-transform 0.2s ease-out, opacity 0.2s ease-in;
transition: transform 0.2s ease-out, opacity 0.2s ease-in;
}

2015
web/js/cluster/leaflet.markercluster-src.js

File diff suppressed because it is too large

6
web/js/cluster/leaflet.markercluster.js

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save