{"action":"closed","issue":{"url":"https://api.github.com/repos/IGNF/geoportal-extensions/issues/142","repository_url":"https://api.github.com/repos/IGNF/geoportal-extensions","labels_url":"https://api.github.com/repos/IGNF/geoportal-extensions/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/IGNF/geoportal-extensions/issues/142/comments","events_url":"https://api.github.com/repos/IGNF/geoportal-extensions/issues/142/events","html_url":"https://github.com/IGNF/geoportal-extensions/issues/142","id":248022014,"number":142,"title":"Extension Leaflet Layer : Provide custom serviceUrl","user":{"login":"Brictarus","id":1291360,"avatar_url":"https://avatars3.githubusercontent.com/u/1291360?v=4","gravatar_id":"","url":"https://api.github.com/users/Brictarus","html_url":"https://github.com/Brictarus","followers_url":"https://api.github.com/users/Brictarus/followers","following_url":"https://api.github.com/users/Brictarus/following{/other_user}","gists_url":"https://api.github.com/users/Brictarus/gists{/gist_id}","starred_url":"https://api.github.com/users/Brictarus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Brictarus/subscriptions","organizations_url":"https://api.github.com/users/Brictarus/orgs","repos_url":"https://api.github.com/users/Brictarus/repos","events_url":"https://api.github.com/users/Brictarus/events{/privacy}","received_events_url":"https://api.github.com/users/Brictarus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-08-04T14:25:13Z","updated_at":"2017-09-26T12:59:27Z","closed_at":"2017-09-26T12:59:27Z","author_association":"NONE","body":"Hello,\r\n\r\nIn the file `Leaflet/Layers/Layers.js` we've found : \r\n\r\n```javascript\r\nserviceUrl : \"http://localhost?no-rights-found-for=[{layer}]\"\r\n```\r\nThis code calls an url that obviously doesn't exist... It would be really helpful to be able to overload this `serviceUrl` variable when creating the layer instead of having that constant value.\r\n\r\nFor example, on my current project, we want to use an Apache web server as a proxy between the client application (embedding the leaflet stuff and this plugin) and the IGN API. But we can't make it work as we cannot modify the `serviceUrl` value."}}
{"actor":{"display_login":"lowzonenose"}}