Clusterer options

back to documentation
          
            var icons = {
              field_name:"icon",
              options:{
                'skmap':'images/icon.png'
              },
              size:[64,64],
              origin:[0,0],
              anchor:[32,64]
            };
            
            var clusterStyles = [{
              url: 'images/cluster.png',
              height: 64,
              width: 64,
              anchor: [0, 0],
              textColor: '#ffffff',
              textSize: 13
            }];
            
            jQuery('#map').shakemap({
              data:'clustering.json',
              categoryIcons:icons,
              clusterer:{
                style:clusterStyles
              }
            });