{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/carto.js/issues/2125","repository_url":"https://api.github.com/repos/CartoDB/carto.js","labels_url":"https://api.github.com/repos/CartoDB/carto.js/issues/2125/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/carto.js/issues/2125/comments","events_url":"https://api.github.com/repos/CartoDB/carto.js/issues/2125/events","html_url":"https://github.com/CartoDB/carto.js/issues/2125","id":326445623,"node_id":"MDU6SXNzdWUzMjY0NDU2MjM=","number":2125,"title":"Add options as input argument to the getLeafletLayer() method","user":{"login":"oriolbx","id":11177693,"node_id":"MDQ6VXNlcjExMTc3Njkz","avatar_url":"https://avatars3.githubusercontent.com/u/11177693?v=4","gravatar_id":"","url":"https://api.github.com/users/oriolbx","html_url":"https://github.com/oriolbx","followers_url":"https://api.github.com/users/oriolbx/followers","following_url":"https://api.github.com/users/oriolbx/following{/other_user}","gists_url":"https://api.github.com/users/oriolbx/gists{/gist_id}","starred_url":"https://api.github.com/users/oriolbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oriolbx/subscriptions","organizations_url":"https://api.github.com/users/oriolbx/orgs","repos_url":"https://api.github.com/users/oriolbx/repos","events_url":"https://api.github.com/users/oriolbx/events{/privacy}","received_events_url":"https://api.github.com/users/oriolbx/received_events","type":"User","site_admin":false},"labels":[{"id":793888617,"node_id":"MDU6TGFiZWw3OTM4ODg2MTc=","url":"https://api.github.com/repos/CartoDB/carto.js/labels/feature-request","name":"feature-request","color":"79d142","default":false},{"id":800409789,"node_id":"MDU6TGFiZWw4MDA0MDk3ODk=","url":"https://api.github.com/repos/CartoDB/carto.js/labels/v4.1","name":"v4.1","color":"A9E8DC","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/CartoDB/carto.js/milestones/44","html_url":"https://github.com/CartoDB/carto.js/milestone/44","labels_url":"https://api.github.com/repos/CartoDB/carto.js/milestones/44/labels","id":3424119,"node_id":"MDk6TWlsZXN0b25lMzQyNDExOQ==","number":44,"title":"v4.1","description":"https://github.com/CartoDB/cartodb-management/issues/5169","creator":{"login":"ivanmalagon","id":1078228,"node_id":"MDQ6VXNlcjEwNzgyMjg=","avatar_url":"https://avatars0.githubusercontent.com/u/1078228?v=4","gravatar_id":"","url":"https://api.github.com/users/ivanmalagon","html_url":"https://github.com/ivanmalagon","followers_url":"https://api.github.com/users/ivanmalagon/followers","following_url":"https://api.github.com/users/ivanmalagon/following{/other_user}","gists_url":"https://api.github.com/users/ivanmalagon/gists{/gist_id}","starred_url":"https://api.github.com/users/ivanmalagon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivanmalagon/subscriptions","organizations_url":"https://api.github.com/users/ivanmalagon/orgs","repos_url":"https://api.github.com/users/ivanmalagon/repos","events_url":"https://api.github.com/users/ivanmalagon/events{/privacy}","received_events_url":"https://api.github.com/users/ivanmalagon/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":2,"state":"open","created_at":"2018-06-14T07:58:22Z","updated_at":"2018-06-21T14:51:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2018-05-25T09:21:54Z","updated_at":"2018-06-29T07:13:15Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Context\r\n\r\nAccording to the documentation, the methods getleafletLayer() , returns a leaflet layer that groups all the layers that have been added to this client, it returns a [L.TileLayer](https://leafletjs.com/reference-1.3.0.html#tilelayer) layer that groups all the layers.\r\n\r\nHowever, if you want to add or change the options of the layer, it is not possible using the methods of Leaflet and CARTO getLeafletLayer() method does not accepts input arguments to change the options of the Layer generated.\r\n\r\nIt would be nice to have this option in CARTO.js. \r\n\r\nFor example, at this moment we can add the option noWrap to the L.tileLayer of the basemap but not for CARTO layer. Therefore the result is the next one:\r\n\r\n![screen shot 2018-05-25 at 11 20 38](https://user-images.githubusercontent.com/11177693/40536885-c7b56548-600d-11e8-8bd4-502c25ab157f.png)\r\n\r\n\r\n "},"comment":{"url":"https://api.github.com/repos/CartoDB/carto.js/issues/comments/401268997","html_url":"https://github.com/CartoDB/carto.js/issues/2125#issuecomment-401268997","issue_url":"https://api.github.com/repos/CartoDB/carto.js/issues/2125","id":401268997,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTI2ODk5Nw==","user":{"login":"rubenmoya","id":905225,"node_id":"MDQ6VXNlcjkwNTIyNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/905225?v=4","gravatar_id":"","url":"https://api.github.com/users/rubenmoya","html_url":"https://github.com/rubenmoya","followers_url":"https://api.github.com/users/rubenmoya/followers","following_url":"https://api.github.com/users/rubenmoya/following{/other_user}","gists_url":"https://api.github.com/users/rubenmoya/gists{/gist_id}","starred_url":"https://api.github.com/users/rubenmoya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubenmoya/subscriptions","organizations_url":"https://api.github.com/users/rubenmoya/orgs","repos_url":"https://api.github.com/users/rubenmoya/repos","events_url":"https://api.github.com/users/rubenmoya/events{/privacy}","received_events_url":"https://api.github.com/users/rubenmoya/received_events","type":"User","site_admin":false},"created_at":"2018-06-29T07:13:15Z","updated_at":"2018-06-29T07:13:15Z","author_association":"MEMBER","body":"I've opened a PR to solve this, although your example won't work if you only use `noWrap`, you can read more about it [here](https://stackoverflow.com/a/47482145). Using this options works:\r\n\r\n```\r\n{\r\n  noWrap: true,\r\n  bounds: [\r\n    [-90, -180],\r\n    [90, 180]\r\n  ]\r\n}\r\n```"}}
{"actor":{"display_login":"rubenmoya"}}