{"action":"closed","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3877","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3877/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3877/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3877/events","html_url":"https://github.com/openlayers/ol3/issues/3877","id":93283105,"number":3877,"title":"What is the recommended way to hack into OL3 source code?","user":{"login":"htulipe","id":1255457,"avatar_url":"https://avatars.githubusercontent.com/u/1255457?v=3","gravatar_id":"","url":"https://api.github.com/users/htulipe","html_url":"https://github.com/htulipe","followers_url":"https://api.github.com/users/htulipe/followers","following_url":"https://api.github.com/users/htulipe/following{/other_user}","gists_url":"https://api.github.com/users/htulipe/gists{/gist_id}","starred_url":"https://api.github.com/users/htulipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/htulipe/subscriptions","organizations_url":"https://api.github.com/users/htulipe/orgs","repos_url":"https://api.github.com/users/htulipe/repos","events_url":"https://api.github.com/users/htulipe/events{/privacy}","received_events_url":"https://api.github.com/users/htulipe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-06T13:50:38Z","updated_at":"2015-08-06T06:12:29Z","closed_at":"2015-08-06T06:12:29Z","body":"With the \"compiled\" version of OL3, any method that is not flagged as public cannot be accessed by developpers. This represents a problem in some case. \r\n\r\nFor instance I would like to override `ol.format.KML.writePlacemark_` to handle a business specific case but, as far as I can tell, this can not be done with OL3 \"compiled\".\r\n\r\nWhile I can understand the benefit of private/public methods, there often will be a need to hack into the code to adapt library to business needs. Hence my question, what is the recommended way to hack into OL3 source code? \r\n\r\nThe only way I see right now is to maintain my own version of the library and compile it myself along with my additions. While this a doable solution, this is a really unpractical one.\r\n"}}