{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/4017","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/4017/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/4017/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/4017/events","html_url":"https://github.com/openlayers/ol3/pull/4017","id":101862714,"number":4017,"title":"Do not overwrite projections in the registry","user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-19T10:55:27Z","updated_at":"2015-08-19T11:09:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/4017","html_url":"https://github.com/openlayers/ol3/pull/4017","diff_url":"https://github.com/openlayers/ol3/pull/4017.diff","patch_url":"https://github.com/openlayers/ol3/pull/4017.patch"},"body":"When proj4js is loaded, creating a projection with a SRS code that is already registered will cause the existing projection in the registry to be overwritten. This can become a problem e.g. when someone creates a projection object with a custom extent for use it in a specific context. That projection object with its custom extent would be set in the registry, causing it to be returned whenever `ol.proj.get()` is used with its SRS code."},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/132546520","html_url":"https://github.com/openlayers/ol3/pull/4017#issuecomment-132546520","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/4017","id":132546520,"user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"created_at":"2015-08-19T11:09:00Z","updated_at":"2015-08-19T11:09:00Z","body":"In the snippet you linked, you use `ol.proj.addProjection()`. In this case whatever exists in the registry for that SRS code will still be overwritten.\r\n\r\nMy pull request only prevents that registry entries get overwritten by just creating a projection with `new ol.proj.Projection()`. If someone has been relying on this, then I would say they were relying on a buggy behavior, so no need to mention this in the release notes."}}