{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/4319","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/4319/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4319/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/4319/events","html_url":"https://github.com/openlayers/ol3/issues/4319","id":113450283,"number":4319,"title":"wrapX: false wont work on clustering source","user":{"login":"FRizZL","id":1866925,"avatar_url":"https://avatars.githubusercontent.com/u/1866925?v=3","gravatar_id":"","url":"https://api.github.com/users/FRizZL","html_url":"https://github.com/FRizZL","followers_url":"https://api.github.com/users/FRizZL/followers","following_url":"https://api.github.com/users/FRizZL/following{/other_user}","gists_url":"https://api.github.com/users/FRizZL/gists{/gist_id}","starred_url":"https://api.github.com/users/FRizZL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRizZL/subscriptions","organizations_url":"https://api.github.com/users/FRizZL/orgs","repos_url":"https://api.github.com/users/FRizZL/repos","events_url":"https://api.github.com/users/FRizZL/events{/privacy}","received_events_url":"https://api.github.com/users/FRizZL/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-26T20:59:44Z","updated_at":"2015-10-26T21:17:26Z","closed_at":null,"body":"I had a single map working with all my features (because of the wrapX option). As soon as I changed my source from Vector() to Cluster() it showed multiple features, as if there are more worlds to show. Strangely it only affects the source layer and not the map layer.\r\nThis have to be a bug, cause the docs say: Cluster() extends Vector() so wrapX has to be available in my opinion..\r\n\r\n```javascript\r\n\r\n... more code above here ...\r\n\r\nvar sourcePhotos = new ol.layer.Vector({\r\n    source: new ol.source.Cluster({\r\n        distance: 20,\r\n        source: new ol.source.Vector({\r\n            url: '/photo/markers', // works perfectly\r\n            format: new ol.format.GeoJSON(),\r\n        }),\r\n        wrapX: false // <--- its there\r\n    }),\r\n    style: function (feature, resolution) {\r\n        var size = feature.get('features').length;\r\n\r\n        style = [new ol.style.Style({\r\n                image: new ol.style.Icon(/** @type {olx.style.IconOptions} */ {\r\n                    anchor: [8, 8],\r\n                    anchorXUnits: 'pixels',\r\n                    anchorYUnits: 'pixels',\r\n                    src: '/img/camera.png'\r\n                }),\r\n                text: new ol.style.Text({\r\n                    text: size.toString(),\r\n                    fill: new ol.style.Fill({\r\n                        color: '#000'\r\n                    }),\r\n                    offsetX: 18\r\n                }),\r\n            })];\r\n        return style;\r\n    }\r\n});\r\n\r\n.. more code below here ...\r\n```\r\n![bug-1](https://cloud.githubusercontent.com/assets/1866925/10742194/2c4a0266-7c2c-11e5-9c3b-c42a39058490.png)\r\n"},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/151287403","html_url":"https://github.com/openlayers/ol3/issues/4319#issuecomment-151287403","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4319","id":151287403,"user":{"login":"FRizZL","id":1866925,"avatar_url":"https://avatars.githubusercontent.com/u/1866925?v=3","gravatar_id":"","url":"https://api.github.com/users/FRizZL","html_url":"https://github.com/FRizZL","followers_url":"https://api.github.com/users/FRizZL/followers","following_url":"https://api.github.com/users/FRizZL/following{/other_user}","gists_url":"https://api.github.com/users/FRizZL/gists{/gist_id}","starred_url":"https://api.github.com/users/FRizZL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FRizZL/subscriptions","organizations_url":"https://api.github.com/users/FRizZL/orgs","repos_url":"https://api.github.com/users/FRizZL/repos","events_url":"https://api.github.com/users/FRizZL/events{/privacy}","received_events_url":"https://api.github.com/users/FRizZL/received_events","type":"User","site_admin":false},"created_at":"2015-10-26T21:17:26Z","updated_at":"2015-10-26T21:17:26Z","body":"Will do."}}