{"action":"created","comment":{"url":"https://api.github.com/repos/terrestris/BasiGX/pulls/comments/65668565","id":65668565,"diff_hunk":"@@ -0,0 +1,196 @@\n+/* Copyright (c) 2016 mundialis GmbH & Co. KG\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+/**\n+ * WMS-Time Slider\n+ *\n+ * Used to slide through all timestamps from a WMS-Time Layer. Timestamps are\n+ * taken from the layer's getCapabilitites document when displayed as a list.\n+ *\n+ * Example usage:\n+ *\n+ * {\n+ *      xtype: 'basigx-container-wmstimeslider',\n+ *      url: 'http://example.de/geoserver/timeseries/wms',\n+ *      layerNameInWMS: 'timeseries',\n+ *      layerNameInClient: 'timeseries1'\n+ * }\n+ *\n+ * TODOs:\n+ *   * Make type of timestamp on labels and tooltips configurable\n+ *     (now it shows interval in days)\n+ *\n+ * @class BasiGX.view.container.WMSTimeSlider\n+ */\n+Ext.define(\"BasiGX.view.container.WMSTimeSlider\",{\n+    extend: \"Ext.container.Container\",\n+    xtype: 'basigx-container-wmstimeslider',\n+\n+    width: '95%',\n+\n+    config: {\n+        times: []\n+    },\n+\n+    url: null,\n+\n+    layerNameInWMS: null,\n+\n+    layerNameInClient: null,\n+\n+    cls: 'timeSlider',\n+\n+    initComponent: function() {\n+        var me = this;\n+        var slidercontainer = this;\n+        var params = Ext.apply({\n+            service: 'WMS',\n+            version: '1.3.0',\n+            request: 'GetCapabilities'\n+        });\n+        Ext.Ajax.request({\n+            url: slidercontainer.url,\n+            method: 'GET',\n+            params: params,\n+            async: false,","path":"src/view/container/WMSTimeSlider.js","position":67,"original_position":67,"commit_id":"d124f2c5cf11e8b41125ae3ff784965bef1bca7f","original_commit_id":"d124f2c5cf11e8b41125ae3ff784965bef1bca7f","user":{"login":"weskamm","id":1381363,"avatar_url":"https://avatars.githubusercontent.com/u/1381363?v=3","gravatar_id":"","url":"https://api.github.com/users/weskamm","html_url":"https://github.com/weskamm","followers_url":"https://api.github.com/users/weskamm/followers","following_url":"https://api.github.com/users/weskamm/following{/other_user}","gists_url":"https://api.github.com/users/weskamm/gists{/gist_id}","starred_url":"https://api.github.com/users/weskamm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/weskamm/subscriptions","organizations_url":"https://api.github.com/users/weskamm/orgs","repos_url":"https://api.github.com/users/weskamm/repos","events_url":"https://api.github.com/users/weskamm/events{/privacy}","received_events_url":"https://api.github.com/users/weskamm/received_events","type":"User","site_admin":false},"body":"we should try to avoid this and use events to handle the asynchronous answer","created_at":"2016-06-03T07:50:47Z","updated_at":"2016-06-03T07:50:47Z","html_url":"https://github.com/terrestris/BasiGX/pull/96#discussion_r65668565","pull_request_url":"https://api.github.com/repos/terrestris/BasiGX/pulls/96","_links":{"self":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/comments/65668565"},"html":{"href":"https://github.com/terrestris/BasiGX/pull/96#discussion_r65668565"},"pull_request":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/96"}}},"pull_request":{"url":"https://api.github.com/repos/terrestris/BasiGX/pulls/96","id":72174352,"html_url":"https://github.com/terrestris/BasiGX/pull/96","diff_url":"https://github.com/terrestris/BasiGX/pull/96.diff","patch_url":"https://github.com/terrestris/BasiGX/pull/96.patch","issue_url":"https://api.github.com/repos/terrestris/BasiGX/issues/96","number":96,"state":"open","locked":false,"title":"Added WMS-time slider","user":{"login":"mmacata","id":8308401,"avatar_url":"https://avatars.githubusercontent.com/u/8308401?v=3","gravatar_id":"","url":"https://api.github.com/users/mmacata","html_url":"https://github.com/mmacata","followers_url":"https://api.github.com/users/mmacata/followers","following_url":"https://api.github.com/users/mmacata/following{/other_user}","gists_url":"https://api.github.com/users/mmacata/gists{/gist_id}","starred_url":"https://api.github.com/users/mmacata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmacata/subscriptions","organizations_url":"https://api.github.com/users/mmacata/orgs","repos_url":"https://api.github.com/users/mmacata/repos","events_url":"https://api.github.com/users/mmacata/events{/privacy}","received_events_url":"https://api.github.com/users/mmacata/received_events","type":"User","site_admin":false},"body":"This slider takes a WMS-Time Layer and uses its timestamps to create itself. This makes it possible to slide through the different times from the layer.\r\n\r\nThe tests depend on an ajax request to a public WMS-time. If this foreign depency is not good practice it can be removed.","created_at":"2016-06-01T12:48:27Z","updated_at":"2016-06-03T07:50:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/terrestris/BasiGX/pulls/96/commits","review_comments_url":"https://api.github.com/repos/terrestris/BasiGX/pulls/96/comments","review_comment_url":"https://api.github.com/repos/terrestris/BasiGX/pulls/comments{/number}","comments_url":"https://api.github.com/repos/terrestris/BasiGX/issues/96/comments","statuses_url":"https://api.github.com/repos/terrestris/BasiGX/statuses/d124f2c5cf11e8b41125ae3ff784965bef1bca7f","head":{"label":"mundialis:develop","ref":"develop","sha":"d124f2c5cf11e8b41125ae3ff784965bef1bca7f","user":{"login":"mundialis","id":16286583,"avatar_url":"https://avatars.githubusercontent.com/u/16286583?v=3","gravatar_id":"","url":"https://api.github.com/users/mundialis","html_url":"https://github.com/mundialis","followers_url":"https://api.github.com/users/mundialis/followers","following_url":"https://api.github.com/users/mundialis/following{/other_user}","gists_url":"https://api.github.com/users/mundialis/gists{/gist_id}","starred_url":"https://api.github.com/users/mundialis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundialis/subscriptions","organizations_url":"https://api.github.com/users/mundialis/orgs","repos_url":"https://api.github.com/users/mundialis/repos","events_url":"https://api.github.com/users/mundialis/events{/privacy}","received_events_url":"https://api.github.com/users/mundialis/received_events","type":"Organization","site_admin":false},"repo":{"id":47965784,"name":"BasiGX","full_name":"mundialis/BasiGX","owner":{"login":"mundialis","id":16286583,"avatar_url":"https://avatars.githubusercontent.com/u/16286583?v=3","gravatar_id":"","url":"https://api.github.com/users/mundialis","html_url":"https://github.com/mundialis","followers_url":"https://api.github.com/users/mundialis/followers","following_url":"https://api.github.com/users/mundialis/following{/other_user}","gists_url":"https://api.github.com/users/mundialis/gists{/gist_id}","starred_url":"https://api.github.com/users/mundialis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mundialis/subscriptions","organizations_url":"https://api.github.com/users/mundialis/orgs","repos_url":"https://api.github.com/users/mundialis/repos","events_url":"https://api.github.com/users/mundialis/events{/privacy}","received_events_url":"https://api.github.com/users/mundialis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mundialis/BasiGX","description":"","fork":true,"url":"https://api.github.com/repos/mundialis/BasiGX","forks_url":"https://api.github.com/repos/mundialis/BasiGX/forks","keys_url":"https://api.github.com/repos/mundialis/BasiGX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mundialis/BasiGX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mundialis/BasiGX/teams","hooks_url":"https://api.github.com/repos/mundialis/BasiGX/hooks","issue_events_url":"https://api.github.com/repos/mundialis/BasiGX/issues/events{/number}","events_url":"https://api.github.com/repos/mundialis/BasiGX/events","assignees_url":"https://api.github.com/repos/mundialis/BasiGX/assignees{/user}","branches_url":"https://api.github.com/repos/mundialis/BasiGX/branches{/branch}","tags_url":"https://api.github.com/repos/mundialis/BasiGX/tags","blobs_url":"https://api.github.com/repos/mundialis/BasiGX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mundialis/BasiGX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mundialis/BasiGX/git/refs{/sha}","trees_url":"https://api.github.com/repos/mundialis/BasiGX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mundialis/BasiGX/statuses/{sha}","languages_url":"https://api.github.com/repos/mundialis/BasiGX/languages","stargazers_url":"https://api.github.com/repos/mundialis/BasiGX/stargazers","contributors_url":"https://api.github.com/repos/mundialis/BasiGX/contributors","subscribers_url":"https://api.github.com/repos/mundialis/BasiGX/subscribers","subscription_url":"https://api.github.com/repos/mundialis/BasiGX/subscription","commits_url":"https://api.github.com/repos/mundialis/BasiGX/commits{/sha}","git_commits_url":"https://api.github.com/repos/mundialis/BasiGX/git/commits{/sha}","comments_url":"https://api.github.com/repos/mundialis/BasiGX/comments{/number}","issue_comment_url":"https://api.github.com/repos/mundialis/BasiGX/issues/comments{/number}","contents_url":"https://api.github.com/repos/mundialis/BasiGX/contents/{+path}","compare_url":"https://api.github.com/repos/mundialis/BasiGX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mundialis/BasiGX/merges","archive_url":"https://api.github.com/repos/mundialis/BasiGX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mundialis/BasiGX/downloads","issues_url":"https://api.github.com/repos/mundialis/BasiGX/issues{/number}","pulls_url":"https://api.github.com/repos/mundialis/BasiGX/pulls{/number}","milestones_url":"https://api.github.com/repos/mundialis/BasiGX/milestones{/number}","notifications_url":"https://api.github.com/repos/mundialis/BasiGX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mundialis/BasiGX/labels{/name}","releases_url":"https://api.github.com/repos/mundialis/BasiGX/releases{/id}","deployments_url":"https://api.github.com/repos/mundialis/BasiGX/deployments","created_at":"2015-12-14T09:46:31Z","updated_at":"2016-06-01T08:20:01Z","pushed_at":"2016-06-01T12:41:57Z","git_url":"git://github.com/mundialis/BasiGX.git","ssh_url":"git@github.com:mundialis/BasiGX.git","clone_url":"https://github.com/mundialis/BasiGX.git","svn_url":"https://github.com/mundialis/BasiGX","homepage":null,"size":63417,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"terrestris:master","ref":"master","sha":"05dc9a3cd48349d69ce47bc69d7b82ab23740f71","user":{"login":"terrestris","id":1510416,"avatar_url":"https://avatars.githubusercontent.com/u/1510416?v=3","gravatar_id":"","url":"https://api.github.com/users/terrestris","html_url":"https://github.com/terrestris","followers_url":"https://api.github.com/users/terrestris/followers","following_url":"https://api.github.com/users/terrestris/following{/other_user}","gists_url":"https://api.github.com/users/terrestris/gists{/gist_id}","starred_url":"https://api.github.com/users/terrestris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrestris/subscriptions","organizations_url":"https://api.github.com/users/terrestris/orgs","repos_url":"https://api.github.com/users/terrestris/repos","events_url":"https://api.github.com/users/terrestris/events{/privacy}","received_events_url":"https://api.github.com/users/terrestris/received_events","type":"Organization","site_admin":false},"repo":{"id":44522802,"name":"BasiGX","full_name":"terrestris/BasiGX","owner":{"login":"terrestris","id":1510416,"avatar_url":"https://avatars.githubusercontent.com/u/1510416?v=3","gravatar_id":"","url":"https://api.github.com/users/terrestris","html_url":"https://github.com/terrestris","followers_url":"https://api.github.com/users/terrestris/followers","following_url":"https://api.github.com/users/terrestris/following{/other_user}","gists_url":"https://api.github.com/users/terrestris/gists{/gist_id}","starred_url":"https://api.github.com/users/terrestris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terrestris/subscriptions","organizations_url":"https://api.github.com/users/terrestris/orgs","repos_url":"https://api.github.com/users/terrestris/repos","events_url":"https://api.github.com/users/terrestris/events{/privacy}","received_events_url":"https://api.github.com/users/terrestris/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/terrestris/BasiGX","description":"","fork":false,"url":"https://api.github.com/repos/terrestris/BasiGX","forks_url":"https://api.github.com/repos/terrestris/BasiGX/forks","keys_url":"https://api.github.com/repos/terrestris/BasiGX/keys{/key_id}","collaborators_url":"https://api.github.com/repos/terrestris/BasiGX/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/terrestris/BasiGX/teams","hooks_url":"https://api.github.com/repos/terrestris/BasiGX/hooks","issue_events_url":"https://api.github.com/repos/terrestris/BasiGX/issues/events{/number}","events_url":"https://api.github.com/repos/terrestris/BasiGX/events","assignees_url":"https://api.github.com/repos/terrestris/BasiGX/assignees{/user}","branches_url":"https://api.github.com/repos/terrestris/BasiGX/branches{/branch}","tags_url":"https://api.github.com/repos/terrestris/BasiGX/tags","blobs_url":"https://api.github.com/repos/terrestris/BasiGX/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/terrestris/BasiGX/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/terrestris/BasiGX/git/refs{/sha}","trees_url":"https://api.github.com/repos/terrestris/BasiGX/git/trees{/sha}","statuses_url":"https://api.github.com/repos/terrestris/BasiGX/statuses/{sha}","languages_url":"https://api.github.com/repos/terrestris/BasiGX/languages","stargazers_url":"https://api.github.com/repos/terrestris/BasiGX/stargazers","contributors_url":"https://api.github.com/repos/terrestris/BasiGX/contributors","subscribers_url":"https://api.github.com/repos/terrestris/BasiGX/subscribers","subscription_url":"https://api.github.com/repos/terrestris/BasiGX/subscription","commits_url":"https://api.github.com/repos/terrestris/BasiGX/commits{/sha}","git_commits_url":"https://api.github.com/repos/terrestris/BasiGX/git/commits{/sha}","comments_url":"https://api.github.com/repos/terrestris/BasiGX/comments{/number}","issue_comment_url":"https://api.github.com/repos/terrestris/BasiGX/issues/comments{/number}","contents_url":"https://api.github.com/repos/terrestris/BasiGX/contents/{+path}","compare_url":"https://api.github.com/repos/terrestris/BasiGX/compare/{base}...{head}","merges_url":"https://api.github.com/repos/terrestris/BasiGX/merges","archive_url":"https://api.github.com/repos/terrestris/BasiGX/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/terrestris/BasiGX/downloads","issues_url":"https://api.github.com/repos/terrestris/BasiGX/issues{/number}","pulls_url":"https://api.github.com/repos/terrestris/BasiGX/pulls{/number}","milestones_url":"https://api.github.com/repos/terrestris/BasiGX/milestones{/number}","notifications_url":"https://api.github.com/repos/terrestris/BasiGX/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/terrestris/BasiGX/labels{/name}","releases_url":"https://api.github.com/repos/terrestris/BasiGX/releases{/id}","deployments_url":"https://api.github.com/repos/terrestris/BasiGX/deployments","created_at":"2015-10-19T09:00:44Z","updated_at":"2016-01-27T01:01:43Z","pushed_at":"2016-06-01T12:48:27Z","git_url":"git://github.com/terrestris/BasiGX.git","ssh_url":"git@github.com:terrestris/BasiGX.git","clone_url":"https://github.com/terrestris/BasiGX.git","svn_url":"https://github.com/terrestris/BasiGX","homepage":null,"size":63591,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":12,"mirror_url":null,"open_issues_count":6,"forks":12,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/96"},"html":{"href":"https://github.com/terrestris/BasiGX/pull/96"},"issue":{"href":"https://api.github.com/repos/terrestris/BasiGX/issues/96"},"comments":{"href":"https://api.github.com/repos/terrestris/BasiGX/issues/96/comments"},"review_comments":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/96/comments"},"review_comment":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/terrestris/BasiGX/pulls/96/commits"},"statuses":{"href":"https://api.github.com/repos/terrestris/BasiGX/statuses/d124f2c5cf11e8b41125ae3ff784965bef1bca7f"}}}}
{"actor":{"display_login":"weskamm"}}