Skip to content

Instantly share code, notes, and snippets.

View christopherlakey's full-sized avatar

Christopher Lakey christopherlakey

View GitHub Profile
@christopherlakey
christopherlakey / cluster.js
Created May 12, 2015 19:34
DynamicMarkerCluster angular module
'use strict';
angular.module('cluster',[]).factory('DynamicMarkerCluster', function () {
var createClusterIcon = function (cluster) {
var childCount = cluster.getChildCount();
var childMarkers = cluster.getAllChildMarkers();
var childCount = 0;
childMarkers.forEach(function (marker) {