{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/6292","repository_url":"https://api.github.com/repos/openlayers/ol3","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/6292/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/6292/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/6292/events","html_url":"https://github.com/openlayers/ol3/issues/6292","id":197003108,"number":6292,"title":"Retry Image Src Loading","user":{"login":"sbowler","id":1760004,"avatar_url":"https://avatars.githubusercontent.com/u/1760004?v=3","gravatar_id":"","url":"https://api.github.com/users/sbowler","html_url":"https://github.com/sbowler","followers_url":"https://api.github.com/users/sbowler/followers","following_url":"https://api.github.com/users/sbowler/following{/other_user}","gists_url":"https://api.github.com/users/sbowler/gists{/gist_id}","starred_url":"https://api.github.com/users/sbowler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sbowler/subscriptions","organizations_url":"https://api.github.com/users/sbowler/orgs","repos_url":"https://api.github.com/users/sbowler/repos","events_url":"https://api.github.com/users/sbowler/events{/privacy}","received_events_url":"https://api.github.com/users/sbowler/received_events","type":"User","site_admin":false},"labels":[{"id":263341481,"url":"https://api.github.com/repos/openlayers/ol3/labels/pull%20request%20accepted","name":"pull request accepted","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-21T18:36:11Z","updated_at":"2016-12-22T00:31:44Z","closed_at":null,"body":"Hey guys, thanks for all of your hard work on this and responsiveness to issues and questions. I think this is basically a feature request for a feature that I think was in OL2 and I think it's probably not too hard to implement something, but I'm just not that familiar with your large code base.\r\n\r\nAnyways, I was wondering if you could add the ability to retry loading an image source multiple times if failing to load. Currently we are using `ol.source.ImageStatic` to add geo-rectified PNGs to the map, but sometimes they are not created yet when added. So we have manually check for them and wait for them to be created ourselves prior to adding the source or obviously we could reload the src at that point, either way it's a pain.\r\n\r\nSo basically I think it would be an awesome feature if we could pass in something like retry the source 3 times on failure (like 404 or something like that) and maybe wait 5 or 10 seconds in between attempts. Ideally I think both of those numbers would be configurable options you pass in and would be 0/disabled by default. \r\n\r\nAny thoughts? Thanks again guys."},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/268685904","html_url":"https://github.com/openlayers/ol3/issues/6292#issuecomment-268685904","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/6292","id":268685904,"user":{"login":"tschaub","id":41094,"avatar_url":"https://avatars.githubusercontent.com/u/41094?v=3","gravatar_id":"","url":"https://api.github.com/users/tschaub","html_url":"https://github.com/tschaub","followers_url":"https://api.github.com/users/tschaub/followers","following_url":"https://api.github.com/users/tschaub/following{/other_user}","gists_url":"https://api.github.com/users/tschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/tschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tschaub/subscriptions","organizations_url":"https://api.github.com/users/tschaub/orgs","repos_url":"https://api.github.com/users/tschaub/repos","events_url":"https://api.github.com/users/tschaub/events{/privacy}","received_events_url":"https://api.github.com/users/tschaub/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T00:31:44Z","updated_at":"2016-12-22T00:31:44Z","body":"I think `retries` (`number`, defaults to 2) and `retryDelay` (`number`, defaults to 0) would make for nice source options."}}
{"actor":{"display_login":"tschaub"}}