{"action":"created","comment":{"url":"https://api.github.com/repos/georchestra/georchestra/pulls/comments/85114114","pull_request_review_id":5847553,"id":85114114,"diff_hunk":"@@ -0,0 +1,199 @@\n+Ext.namespace(\"GEOR.Addons\");\n+\n+GEOR.Addons.BANGeocoder = Ext.extend(GEOR.Addons.Base, {\n+    win: null,\n+    addressField: null,\n+    layer: null,\n+\n+    /**\n+     * Method: init\n+     *\n+     * Parameters:\n+     * record - {Ext.data.record} a record with the addon parameters\n+     */\n+    init: function(record) {\n+\n+        // create layer : container of geometry to display adress selected\n+        this.layer = new OpenLayers.Layer.Vector(\"__georchestra_bangeocoder\", {\n+            displayInLayerSwitcher: false,\n+            styleMap: new OpenLayers.StyleMap({\n+                \"default\": {\n+                    graphicWidth: 20,\n+                    graphicHeight: 32,\n+                    graphicYOffset: -28, // shift graphic up 28 pixels\n+                    //Change the location of picture if not find\n+                    externalGraphic: GEOR.config.PATHNAME + 'app/css/images/pwrs/geoPin.png',\n+                }\n+            })\n+        });\n+\n+        // create main window containing free text combo\n+        this.addressField = this._createCbSearch();\n+        this.win = new Ext.Window({\n+            title: OpenLayers.i18n('banGeocoder.window_title'),\n+            constrainHeader: true,\n+            width: 312,\n+            closable: true,\n+            closeAction: \"hide\",\n+            resizable: false,\n+            border: false,\n+            cls: \"bangeocoder\",\n+            items: [this.addressField],\n+            listeners: {\n+                \"hide\": function() {\n+                    this.map.removeLayer(this.layer);\n+                    this.item && this.item.setChecked(false);\n+                    this.components && this.components.toggle(false);\n+                },\n+                \"show\": function() {\n+                    this.map.addLayer(this.layer);\n+                },\n+                scope: this\n+            }\n+        });\n+\n+        if (this.target) {\n+            // create a button to be inserted in toolbar:\n+            this.components = this.target.insertButton(this.position, {\n+                xtype: 'button',\n+                tooltip: this.getTooltip(record),\n+                iconCls: 'addon-bangeocoder',\n+                handler: this.showWindow,\n+                scope: this\n+            });\n+            this.target.doLayout();\n+        } else {\n+            // create a menu item for the \"tools\" menu:\n+            this.item = new Ext.menu.CheckItem({\n+                text: this.getText(record),\n+                qtip: this.getQtip(record),\n+                iconCls: \"addon-bangeocoder\",\n+                handler: this.showWindow,\n+                scope: this\n+            });\n+        }\n+    },\n+\n+\n+    /*\n+     * Method: _createCbSearch\n+     * Returns: {Ext.form.ComboBox}\n+     * Create combo use to search free text input by user and display proposition (autocompletion)\n+     */\n+    _createCbSearch: function() {\n+\n+        // get options from config.json file\n+        var banGeocoderOptions = this.options;\n+\n+        // create store to pass free text and get result from service (URL)\n+        var store = new Ext.data.JsonStore({\n+            proxy: new Ext.data.HttpProxy({\n+                url: banGeocoderOptions.geocodeServiceUrl, // set service URL in manifest.json file, more informations in README","path":"mapfishapp/src/main/webapp/app/addons/bangeocoder/js/main.js","position":91,"original_position":91,"commit_id":"fae07a23900e50d07db2a1b7fd93718df5f0823c","original_commit_id":"fae07a23900e50d07db2a1b7fd93718df5f0823c","user":{"login":"pierrejego","id":11499415,"avatar_url":"https://avatars.githubusercontent.com/u/11499415?v=3","gravatar_id":"","url":"https://api.github.com/users/pierrejego","html_url":"https://github.com/pierrejego","followers_url":"https://api.github.com/users/pierrejego/followers","following_url":"https://api.github.com/users/pierrejego/following{/other_user}","gists_url":"https://api.github.com/users/pierrejego/gists{/gist_id}","starred_url":"https://api.github.com/users/pierrejego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierrejego/subscriptions","organizations_url":"https://api.github.com/users/pierrejego/orgs","repos_url":"https://api.github.com/users/pierrejego/repos","events_url":"https://api.github.com/users/pierrejego/events{/privacy}","received_events_url":"https://api.github.com/users/pierrejego/received_events","type":"User","site_admin":false},"body":"not sure what you want me to do, just change the comment or something else ? ","created_at":"2016-10-26T12:51:09Z","updated_at":"2016-10-26T12:51:10Z","html_url":"https://github.com/georchestra/georchestra/pull/1519#discussion_r85114114","pull_request_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1519","_links":{"self":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/comments/85114114"},"html":{"href":"https://github.com/georchestra/georchestra/pull/1519#discussion_r85114114"},"pull_request":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1519"}}},"pull_request":{"url":"https://api.github.com/repos/georchestra/georchestra/pulls/1519","id":89417357,"html_url":"https://github.com/georchestra/georchestra/pull/1519","diff_url":"https://github.com/georchestra/georchestra/pull/1519.diff","patch_url":"https://github.com/georchestra/georchestra/pull/1519.patch","issue_url":"https://api.github.com/repos/georchestra/georchestra/issues/1519","number":1519,"state":"open","locked":false,"title":"Add mapfishapp addons using French BAN Geocoder API","user":{"login":"pierrejego","id":11499415,"avatar_url":"https://avatars.githubusercontent.com/u/11499415?v=3","gravatar_id":"","url":"https://api.github.com/users/pierrejego","html_url":"https://github.com/pierrejego","followers_url":"https://api.github.com/users/pierrejego/followers","following_url":"https://api.github.com/users/pierrejego/following{/other_user}","gists_url":"https://api.github.com/users/pierrejego/gists{/gist_id}","starred_url":"https://api.github.com/users/pierrejego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierrejego/subscriptions","organizations_url":"https://api.github.com/users/pierrejego/orgs","repos_url":"https://api.github.com/users/pierrejego/repos","events_url":"https://api.github.com/users/pierrejego/events{/privacy}","received_events_url":"https://api.github.com/users/pierrejego/received_events","type":"User","site_admin":false},"body":"See #1518 ","created_at":"2016-10-14T16:47:42Z","updated_at":"2016-10-26T12:51:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"71966ccf152d145b754e9d3c8ff2835c2fe8db1d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1519/commits","review_comments_url":"https://api.github.com/repos/georchestra/georchestra/pulls/1519/comments","review_comment_url":"https://api.github.com/repos/georchestra/georchestra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/georchestra/georchestra/issues/1519/comments","statuses_url":"https://api.github.com/repos/georchestra/georchestra/statuses/fae07a23900e50d07db2a1b7fd93718df5f0823c","head":{"label":"GFI-Informatique:BAN-Geocoder","ref":"BAN-Geocoder","sha":"fae07a23900e50d07db2a1b7fd93718df5f0823c","user":{"login":"GFI-Informatique","id":5795710,"avatar_url":"https://avatars.githubusercontent.com/u/5795710?v=3","gravatar_id":"","url":"https://api.github.com/users/GFI-Informatique","html_url":"https://github.com/GFI-Informatique","followers_url":"https://api.github.com/users/GFI-Informatique/followers","following_url":"https://api.github.com/users/GFI-Informatique/following{/other_user}","gists_url":"https://api.github.com/users/GFI-Informatique/gists{/gist_id}","starred_url":"https://api.github.com/users/GFI-Informatique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFI-Informatique/subscriptions","organizations_url":"https://api.github.com/users/GFI-Informatique/orgs","repos_url":"https://api.github.com/users/GFI-Informatique/repos","events_url":"https://api.github.com/users/GFI-Informatique/events{/privacy}","received_events_url":"https://api.github.com/users/GFI-Informatique/received_events","type":"Organization","site_admin":false},"repo":{"id":32446539,"name":"georchestra","full_name":"GFI-Informatique/georchestra","owner":{"login":"GFI-Informatique","id":5795710,"avatar_url":"https://avatars.githubusercontent.com/u/5795710?v=3","gravatar_id":"","url":"https://api.github.com/users/GFI-Informatique","html_url":"https://github.com/GFI-Informatique","followers_url":"https://api.github.com/users/GFI-Informatique/followers","following_url":"https://api.github.com/users/GFI-Informatique/following{/other_user}","gists_url":"https://api.github.com/users/GFI-Informatique/gists{/gist_id}","starred_url":"https://api.github.com/users/GFI-Informatique/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GFI-Informatique/subscriptions","organizations_url":"https://api.github.com/users/GFI-Informatique/orgs","repos_url":"https://api.github.com/users/GFI-Informatique/repos","events_url":"https://api.github.com/users/GFI-Informatique/events{/privacy}","received_events_url":"https://api.github.com/users/GFI-Informatique/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/GFI-Informatique/georchestra","description":"This is the main geOrchestra Spatial Data Infrastructure repository","fork":true,"url":"https://api.github.com/repos/GFI-Informatique/georchestra","forks_url":"https://api.github.com/repos/GFI-Informatique/georchestra/forks","keys_url":"https://api.github.com/repos/GFI-Informatique/georchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GFI-Informatique/georchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GFI-Informatique/georchestra/teams","hooks_url":"https://api.github.com/repos/GFI-Informatique/georchestra/hooks","issue_events_url":"https://api.github.com/repos/GFI-Informatique/georchestra/issues/events{/number}","events_url":"https://api.github.com/repos/GFI-Informatique/georchestra/events","assignees_url":"https://api.github.com/repos/GFI-Informatique/georchestra/assignees{/user}","branches_url":"https://api.github.com/repos/GFI-Informatique/georchestra/branches{/branch}","tags_url":"https://api.github.com/repos/GFI-Informatique/georchestra/tags","blobs_url":"https://api.github.com/repos/GFI-Informatique/georchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GFI-Informatique/georchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GFI-Informatique/georchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/GFI-Informatique/georchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GFI-Informatique/georchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/GFI-Informatique/georchestra/languages","stargazers_url":"https://api.github.com/repos/GFI-Informatique/georchestra/stargazers","contributors_url":"https://api.github.com/repos/GFI-Informatique/georchestra/contributors","subscribers_url":"https://api.github.com/repos/GFI-Informatique/georchestra/subscribers","subscription_url":"https://api.github.com/repos/GFI-Informatique/georchestra/subscription","commits_url":"https://api.github.com/repos/GFI-Informatique/georchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/GFI-Informatique/georchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/GFI-Informatique/georchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/GFI-Informatique/georchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/GFI-Informatique/georchestra/contents/{+path}","compare_url":"https://api.github.com/repos/GFI-Informatique/georchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GFI-Informatique/georchestra/merges","archive_url":"https://api.github.com/repos/GFI-Informatique/georchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GFI-Informatique/georchestra/downloads","issues_url":"https://api.github.com/repos/GFI-Informatique/georchestra/issues{/number}","pulls_url":"https://api.github.com/repos/GFI-Informatique/georchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/GFI-Informatique/georchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/GFI-Informatique/georchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GFI-Informatique/georchestra/labels{/name}","releases_url":"https://api.github.com/repos/GFI-Informatique/georchestra/releases{/id}","deployments_url":"https://api.github.com/repos/GFI-Informatique/georchestra/deployments","created_at":"2015-03-18T08:23:18Z","updated_at":"2016-02-18T09:49:33Z","pushed_at":"2016-10-26T08:54:23Z","git_url":"git://github.com/GFI-Informatique/georchestra.git","ssh_url":"git@github.com:GFI-Informatique/georchestra.git","clone_url":"https://github.com/GFI-Informatique/georchestra.git","svn_url":"https://github.com/GFI-Informatique/georchestra","homepage":"http://www.georchestra.org/","size":237521,"stargazers_count":0,"watchers_count":0,"language":"Game Maker Language","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"georchestra:master","ref":"master","sha":"d41683d3a41729e2b8a2e28d9079e1434d04f543","user":{"login":"georchestra","id":773831,"avatar_url":"https://avatars.githubusercontent.com/u/773831?v=3","gravatar_id":"","url":"https://api.github.com/users/georchestra","html_url":"https://github.com/georchestra","followers_url":"https://api.github.com/users/georchestra/followers","following_url":"https://api.github.com/users/georchestra/following{/other_user}","gists_url":"https://api.github.com/users/georchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/georchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georchestra/subscriptions","organizations_url":"https://api.github.com/users/georchestra/orgs","repos_url":"https://api.github.com/users/georchestra/repos","events_url":"https://api.github.com/users/georchestra/events{/privacy}","received_events_url":"https://api.github.com/users/georchestra/received_events","type":"Organization","site_admin":false},"repo":{"id":6066709,"name":"georchestra","full_name":"georchestra/georchestra","owner":{"login":"georchestra","id":773831,"avatar_url":"https://avatars.githubusercontent.com/u/773831?v=3","gravatar_id":"","url":"https://api.github.com/users/georchestra","html_url":"https://github.com/georchestra","followers_url":"https://api.github.com/users/georchestra/followers","following_url":"https://api.github.com/users/georchestra/following{/other_user}","gists_url":"https://api.github.com/users/georchestra/gists{/gist_id}","starred_url":"https://api.github.com/users/georchestra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/georchestra/subscriptions","organizations_url":"https://api.github.com/users/georchestra/orgs","repos_url":"https://api.github.com/users/georchestra/repos","events_url":"https://api.github.com/users/georchestra/events{/privacy}","received_events_url":"https://api.github.com/users/georchestra/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/georchestra/georchestra","description":"This is the main geOrchestra Spatial Data Infrastructure repository, which hosts the source code.","fork":false,"url":"https://api.github.com/repos/georchestra/georchestra","forks_url":"https://api.github.com/repos/georchestra/georchestra/forks","keys_url":"https://api.github.com/repos/georchestra/georchestra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/georchestra/georchestra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/georchestra/georchestra/teams","hooks_url":"https://api.github.com/repos/georchestra/georchestra/hooks","issue_events_url":"https://api.github.com/repos/georchestra/georchestra/issues/events{/number}","events_url":"https://api.github.com/repos/georchestra/georchestra/events","assignees_url":"https://api.github.com/repos/georchestra/georchestra/assignees{/user}","branches_url":"https://api.github.com/repos/georchestra/georchestra/branches{/branch}","tags_url":"https://api.github.com/repos/georchestra/georchestra/tags","blobs_url":"https://api.github.com/repos/georchestra/georchestra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/georchestra/georchestra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/georchestra/georchestra/git/refs{/sha}","trees_url":"https://api.github.com/repos/georchestra/georchestra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/georchestra/georchestra/statuses/{sha}","languages_url":"https://api.github.com/repos/georchestra/georchestra/languages","stargazers_url":"https://api.github.com/repos/georchestra/georchestra/stargazers","contributors_url":"https://api.github.com/repos/georchestra/georchestra/contributors","subscribers_url":"https://api.github.com/repos/georchestra/georchestra/subscribers","subscription_url":"https://api.github.com/repos/georchestra/georchestra/subscription","commits_url":"https://api.github.com/repos/georchestra/georchestra/commits{/sha}","git_commits_url":"https://api.github.com/repos/georchestra/georchestra/git/commits{/sha}","comments_url":"https://api.github.com/repos/georchestra/georchestra/comments{/number}","issue_comment_url":"https://api.github.com/repos/georchestra/georchestra/issues/comments{/number}","contents_url":"https://api.github.com/repos/georchestra/georchestra/contents/{+path}","compare_url":"https://api.github.com/repos/georchestra/georchestra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/georchestra/georchestra/merges","archive_url":"https://api.github.com/repos/georchestra/georchestra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/georchestra/georchestra/downloads","issues_url":"https://api.github.com/repos/georchestra/georchestra/issues{/number}","pulls_url":"https://api.github.com/repos/georchestra/georchestra/pulls{/number}","milestones_url":"https://api.github.com/repos/georchestra/georchestra/milestones{/number}","notifications_url":"https://api.github.com/repos/georchestra/georchestra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/georchestra/georchestra/labels{/name}","releases_url":"https://api.github.com/repos/georchestra/georchestra/releases{/id}","deployments_url":"https://api.github.com/repos/georchestra/georchestra/deployments","created_at":"2012-10-03T20:55:45Z","updated_at":"2016-10-22T20:32:03Z","pushed_at":"2016-10-26T11:20:35Z","git_url":"git://github.com/georchestra/georchestra.git","ssh_url":"git@github.com:georchestra/georchestra.git","clone_url":"https://github.com/georchestra/georchestra.git","svn_url":"https://github.com/georchestra/georchestra","homepage":"http://www.georchestra.org/","size":248029,"stargazers_count":30,"watchers_count":30,"language":"Game Maker Language","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":55,"mirror_url":null,"open_issues_count":333,"forks":55,"open_issues":333,"watchers":30,"default_branch":"15.12"}},"_links":{"self":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1519"},"html":{"href":"https://github.com/georchestra/georchestra/pull/1519"},"issue":{"href":"https://api.github.com/repos/georchestra/georchestra/issues/1519"},"comments":{"href":"https://api.github.com/repos/georchestra/georchestra/issues/1519/comments"},"review_comments":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1519/comments"},"review_comment":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/georchestra/georchestra/pulls/1519/commits"},"statuses":{"href":"https://api.github.com/repos/georchestra/georchestra/statuses/fae07a23900e50d07db2a1b7fd93718df5f0823c"}}}}
{"actor":{"display_login":"pierrejego"}}