{"action":"created","issue":{"url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/55","repository_url":"https://api.github.com/repos/ghettovoice/vuelayers","labels_url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/55/comments","events_url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/55/events","html_url":"https://github.com/ghettovoice/vuelayers/issues/55","id":327459566,"number":55,"title":"question: what do you think about using vuex to drive openlayers?","user":{"login":"guidorice","id":766758,"avatar_url":"https://avatars3.githubusercontent.com/u/766758?v=4","gravatar_id":"","url":"https://api.github.com/users/guidorice","html_url":"https://github.com/guidorice","followers_url":"https://api.github.com/users/guidorice/followers","following_url":"https://api.github.com/users/guidorice/following{/other_user}","gists_url":"https://api.github.com/users/guidorice/gists{/gist_id}","starred_url":"https://api.github.com/users/guidorice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidorice/subscriptions","organizations_url":"https://api.github.com/users/guidorice/orgs","repos_url":"https://api.github.com/users/guidorice/repos","events_url":"https://api.github.com/users/guidorice/events{/privacy}","received_events_url":"https://api.github.com/users/guidorice/received_events","type":"User","site_admin":false},"labels":[{"id":553302849,"url":"https://api.github.com/repos/ghettovoice/vuelayers/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"ghettovoice","id":4323000,"avatar_url":"https://avatars3.githubusercontent.com/u/4323000?v=4","gravatar_id":"","url":"https://api.github.com/users/ghettovoice","html_url":"https://github.com/ghettovoice","followers_url":"https://api.github.com/users/ghettovoice/followers","following_url":"https://api.github.com/users/ghettovoice/following{/other_user}","gists_url":"https://api.github.com/users/ghettovoice/gists{/gist_id}","starred_url":"https://api.github.com/users/ghettovoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghettovoice/subscriptions","organizations_url":"https://api.github.com/users/ghettovoice/orgs","repos_url":"https://api.github.com/users/ghettovoice/repos","events_url":"https://api.github.com/users/ghettovoice/events{/privacy}","received_events_url":"https://api.github.com/users/ghettovoice/received_events","type":"User","site_admin":false},"assignees":[{"login":"ghettovoice","id":4323000,"avatar_url":"https://avatars3.githubusercontent.com/u/4323000?v=4","gravatar_id":"","url":"https://api.github.com/users/ghettovoice","html_url":"https://github.com/ghettovoice","followers_url":"https://api.github.com/users/ghettovoice/followers","following_url":"https://api.github.com/users/ghettovoice/following{/other_user}","gists_url":"https://api.github.com/users/ghettovoice/gists{/gist_id}","starred_url":"https://api.github.com/users/ghettovoice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghettovoice/subscriptions","organizations_url":"https://api.github.com/users/ghettovoice/orgs","repos_url":"https://api.github.com/users/ghettovoice/repos","events_url":"https://api.github.com/users/ghettovoice/events{/privacy}","received_events_url":"https://api.github.com/users/ghettovoice/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-05-29T19:40:14Z","updated_at":"2018-05-30T13:29:29Z","closed_at":"2018-05-30T13:29:29Z","author_association":"NONE","body":"First off, `vuelayers` looks very useful! I cannot wait to use it to build some cool GIS apps. Thanks so much for creating this library!\r\n\r\nI am pretty new to Vue.js so this is a general question. Did you ever consider using `vuex` https://vuex.vuejs.org/ to implement vuelayers? \r\n\r\nIn some Js frameworks, there is a formal way of communicating with 3rd party libraries which have side effects and generate events. e.g. Elm's ports, or Cycle.js's drivers. Along these lines, I was  thinking `vuex` would be the best way to integrate with a 3rd party library like openlayers into Vue.js. I have been tinkering around with ways to do it, with mixed results, not knowing best practices for `vuex` usage, and dynamic module registration in particular.\r\n\r\nBut I see that `vuex` is not used anywhere in `vuelayers`. What do you think about the pros and cons of your component oriented approach vs. a `vuex` flux-pattern approach? I see you have implemented a good part of the openlayers api already, so it certainly appears to be working well.\r\n\r\nJust a question :) thanks again"},"comment":{"url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/comments/393161797","html_url":"https://github.com/ghettovoice/vuelayers/issues/55#issuecomment-393161797","issue_url":"https://api.github.com/repos/ghettovoice/vuelayers/issues/55","id":393161797,"user":{"login":"guidorice","id":766758,"avatar_url":"https://avatars3.githubusercontent.com/u/766758?v=4","gravatar_id":"","url":"https://api.github.com/users/guidorice","html_url":"https://github.com/guidorice","followers_url":"https://api.github.com/users/guidorice/followers","following_url":"https://api.github.com/users/guidorice/following{/other_user}","gists_url":"https://api.github.com/users/guidorice/gists{/gist_id}","starred_url":"https://api.github.com/users/guidorice/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guidorice/subscriptions","organizations_url":"https://api.github.com/users/guidorice/orgs","repos_url":"https://api.github.com/users/guidorice/repos","events_url":"https://api.github.com/users/guidorice/events{/privacy}","received_events_url":"https://api.github.com/users/guidorice/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T13:29:29Z","updated_at":"2018-05-30T13:29:29Z","author_association":"NONE","body":"@ghettovoice thanks for sharing your rational and design. Makes sense! I look forward to contributing to `vuelayers`, should any enhancements or issues come up in future."}}
{"actor":{"display_login":"guidorice"}}