{"action":"created","issue":{"url":"https://api.github.com/repos/rentpath/map.js/issues/61","labels_url":"https://api.github.com/repos/rentpath/map.js/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/rentpath/map.js/issues/61/comments","events_url":"https://api.github.com/repos/rentpath/map.js/issues/61/events","html_url":"https://github.com/rentpath/map.js/pull/61","id":116574606,"number":61,"title":"[SB][105361098] Enable cluster avg centering","user":{"login":"sbrauer","id":613152,"avatar_url":"https://avatars.githubusercontent.com/u/613152?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrauer","html_url":"https://github.com/sbrauer","followers_url":"https://api.github.com/users/sbrauer/followers","following_url":"https://api.github.com/users/sbrauer/following{/other_user}","gists_url":"https://api.github.com/users/sbrauer/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrauer/subscriptions","organizations_url":"https://api.github.com/users/sbrauer/orgs","repos_url":"https://api.github.com/users/sbrauer/repos","events_url":"https://api.github.com/users/sbrauer/events{/privacy}","received_events_url":"https://api.github.com/users/sbrauer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-12T15:38:59Z","updated_at":"2015-11-12T16:00:50Z","closed_at":"2015-11-12T15:43:48Z","pull_request":{"url":"https://api.github.com/repos/rentpath/map.js/pulls/61","html_url":"https://github.com/rentpath/map.js/pull/61","diff_url":"https://github.com/rentpath/map.js/pull/61.diff","patch_url":"https://github.com/rentpath/map.js/pull/61.patch"},"body":"Since we weren't setting the `averageCenter` option, it was defaulting to false,\r\nso each cluster was positioned based on the first marker added\r\nto it instead of the average position of the clustered markers.\r\nThis became more visibly obvious with the new decluster animation...\r\nI noticed that instead of spreading out from a central point, one\r\nseemingly random marker would stay put and the other markers would\r\nanimate away from it."},"comment":{"url":"https://api.github.com/repos/rentpath/map.js/issues/comments/156148455","html_url":"https://github.com/rentpath/map.js/pull/61#issuecomment-156148455","issue_url":"https://api.github.com/repos/rentpath/map.js/issues/61","id":156148455,"user":{"login":"sbrauer","id":613152,"avatar_url":"https://avatars.githubusercontent.com/u/613152?v=3","gravatar_id":"","url":"https://api.github.com/users/sbrauer","html_url":"https://github.com/sbrauer","followers_url":"https://api.github.com/users/sbrauer/followers","following_url":"https://api.github.com/users/sbrauer/following{/other_user}","gists_url":"https://api.github.com/users/sbrauer/gists{/gist_id}","starred_url":"https://api.github.com/users/sbrauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbrauer/subscriptions","organizations_url":"https://api.github.com/users/sbrauer/orgs","repos_url":"https://api.github.com/users/sbrauer/repos","events_url":"https://api.github.com/users/sbrauer/events{/privacy}","received_events_url":"https://api.github.com/users/sbrauer/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T16:00:50Z","updated_at":"2015-11-12T16:00:50Z","body":"Oops - I already did a patch version bump. Should I undo and make it a minor bump?\r\n\r\n@catjes - Just fyi, we discovered that all this time the map clusters were not positioned based on the average position of the clustered markers but instead based on the position of the first marker in the cluster. This was a pretty surprising discovery to me. I would expect the averaging behavior would be the default. I can only assume it's not because it involves some extra computation.\r\n\r\nReference:\r\nhttp://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html\r\n`averageCenter`\tboolean\tWhether the position of a cluster marker should be the average position of all markers in the cluster. If set to false, the cluster marker is positioned at the location of the first marker added to the cluster. The default value is false."}}