ここにあるコードを使用しています:SpiderfierJSをmarkerClustererV3に統合して、まったく同じ長さ/緯度のマルチマーカーを分解し、MarkerClustererをクリックしたときにズームレベルを制限して、同じ場所にポイントを含むクラスターを作成しました。
実例はここにあります: http ://www.adultlearnersfestival.com/newsite/yourarea/map.html
ただし、Firebugでエラーが発生します。
Error: TypeError: markers is undefined
そしてそれを引き起こしているものを理解することはできません。具体的なコードは次のとおりです。
var minClusterZoom = 14;
mc.setMaxZoom(minClusterZoom);
gm.event.addListener(mc, 'clusterclick', function(cluster) {
map.fitBounds(cluster.getBounds()); // Fit the bounds of the cluster clicked on
if( map.getZoom() > minClusterZoom+1 ) // If zoomed in past 15 (first level without clustering), zoom out to 15
map.setZoom(minClusterZoom+1);
});
どんな助けでも大歓迎です。-トム