Skip to content
This repository was archived by the owner on Apr 28, 2026. It is now read-only.

Commit 06a0e11

Browse files
custom cluster icon with numbers hidden
1 parent c6f9d91 commit 06a0e11

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

images/map-cluster.png

3.39 KB
Loading

images/map-marker.png

-276 Bytes
Loading

javascripts/google_map.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,20 @@ $(function(){
110110

111111

112112
// Clustering
113-
var mc = new MarkerClusterer(map, markers);
113+
var mc = new MarkerClusterer(map, markers, {
114+
imagePath: "/images/map-cluster",
115+
imageSizes: [55],
116+
styles: [{
117+
height: 51,
118+
width: 55,
119+
anchorIcon: [40, 22],
120+
anchor: [17, 15],
121+
url: "/images/map-cluster.png",
122+
textColor: "transparent",
123+
textSize: 13,
124+
fontFamily: "Helvetica"
125+
}]
126+
});
114127

115128
}
116129

0 commit comments

Comments
 (0)