{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/5629","repository_url":"https://api.github.com/repos/openlayers/ol3","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/5629/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/5629/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/5629/events","html_url":"https://github.com/openlayers/ol3/issues/5629","id":166988999,"number":5629,"title":"ol.source.Vector loader not called after map.setCenter()","user":{"login":"ceiblef","id":19821079,"avatar_url":"https://avatars.githubusercontent.com/u/19821079?v=3","gravatar_id":"","url":"https://api.github.com/users/ceiblef","html_url":"https://github.com/ceiblef","followers_url":"https://api.github.com/users/ceiblef/followers","following_url":"https://api.github.com/users/ceiblef/following{/other_user}","gists_url":"https://api.github.com/users/ceiblef/gists{/gist_id}","starred_url":"https://api.github.com/users/ceiblef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ceiblef/subscriptions","organizations_url":"https://api.github.com/users/ceiblef/orgs","repos_url":"https://api.github.com/users/ceiblef/repos","events_url":"https://api.github.com/users/ceiblef/events{/privacy}","received_events_url":"https://api.github.com/users/ceiblef/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-07-22T07:49:15Z","updated_at":"2016-07-22T11:14:12Z","closed_at":"2016-07-22T09:16:25Z","body":"I have a vector layer with a vector source loading features from somewhere using the loader function and the loading strategy \"bbox\". When I pan the map the loader is called and adds the new features to the source - everything is fine. When I move the map using `getView().setCenter(...)` the loader is not called.\r\n\r\nI have created a [plunker](https://plnkr.co/edit/b4yuPPeL58Z0EWUvDVPy?p=preview): It has a feature right in the center of the extent. Pan the map until the feature is outside of the extent. Click home - and watch the console output - the loader is not called. In my real example there won't be a feature anymore."},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/234518527","html_url":"https://github.com/openlayers/ol3/issues/5629#issuecomment-234518527","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/5629","id":234518527,"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":"2016-07-22T11:14:12Z","updated_at":"2016-07-22T11:14:12Z","body":"Ok, now you're talking. The websocket part makes sense. The rest does not. Instead of reloading features, look them up by id and modify them in your websocket handler. Then you do not need two ways of handling updates."}}
{"actor":{"display_login":"ahocevar"}}