{"action":"created","issue":{"url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/110","labels_url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/110/labels{/name}","comments_url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/110/comments","events_url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/110/events","html_url":"https://github.com/makinacorpus/django-leaflet/pull/110","id":99248583,"number":110,"title":"support for Google Maps","user":{"login":"Formatc1","id":2553006,"avatar_url":"https://avatars.githubusercontent.com/u/2553006?v=3","gravatar_id":"","url":"https://api.github.com/users/Formatc1","html_url":"https://github.com/Formatc1","followers_url":"https://api.github.com/users/Formatc1/followers","following_url":"https://api.github.com/users/Formatc1/following{/other_user}","gists_url":"https://api.github.com/users/Formatc1/gists{/gist_id}","starred_url":"https://api.github.com/users/Formatc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Formatc1/subscriptions","organizations_url":"https://api.github.com/users/Formatc1/orgs","repos_url":"https://api.github.com/users/Formatc1/repos","events_url":"https://api.github.com/users/Formatc1/events{/privacy}","received_events_url":"https://api.github.com/users/Formatc1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-05T16:47:04Z","updated_at":"2016-01-27T20:34:05Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/makinacorpus/django-leaflet/pulls/110","html_url":"https://github.com/makinacorpus/django-leaflet/pull/110","diff_url":"https://github.com/makinacorpus/django-leaflet/pull/110.diff","patch_url":"https://github.com/makinacorpus/django-leaflet/pull/110.patch"},"body":"It's required following Plugin for Leaflet:\r\nhttps://github.com/shramov/leaflet-plugins/blob/master/layer/tile/Google.js\r\n\r\nIn settings.py shows up new additional options:\r\n'TILES': [('Google Roadmap', 'GOOGLE-ROADMAP', {'attribution': '&copy; Google'}),\r\n          ('Google Terrain', 'GOOGLE-TERRAIN', {'attribution': '&copy; Google'}),\r\n          ('Google Satellite', 'GOOGLE-SATELLITE', {'attribution': '&copy; Google'})]\r\n\r\nAnd it's possible to use maps from Google like other Leaflet Tiles Maps.\r\n\r\nMore info about this plugin on author's page:\r\nhttps://github.com/shramov/leaflet-plugins"},"comment":{"url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/comments/175842139","html_url":"https://github.com/makinacorpus/django-leaflet/pull/110#issuecomment-175842139","issue_url":"https://api.github.com/repos/makinacorpus/django-leaflet/issues/110","id":175842139,"user":{"login":"kosmos342","id":145712,"avatar_url":"https://avatars.githubusercontent.com/u/145712?v=3","gravatar_id":"","url":"https://api.github.com/users/kosmos342","html_url":"https://github.com/kosmos342","followers_url":"https://api.github.com/users/kosmos342/followers","following_url":"https://api.github.com/users/kosmos342/following{/other_user}","gists_url":"https://api.github.com/users/kosmos342/gists{/gist_id}","starred_url":"https://api.github.com/users/kosmos342/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kosmos342/subscriptions","organizations_url":"https://api.github.com/users/kosmos342/orgs","repos_url":"https://api.github.com/users/kosmos342/repos","events_url":"https://api.github.com/users/kosmos342/events{/privacy}","received_events_url":"https://api.github.com/users/kosmos342/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T20:34:05Z","updated_at":"2016-01-27T20:34:05Z","body":"About google layer and tile layer:\r\n```\r\n'TILES': [\r\n    ('Google Roadmap', ('Google', 'Roadmap'), {'attribution': '© Google'}),\r\n    (_('OSM'), ('TileLayer', '//{s}.tile.openstreetmap.org/{z}/{x}/{y}.png'), {'attribution': ''© <a href=\"http://www.openstreetmap.org/copyright\">OpenStreetMap</a> contributors'}),\r\n]\r\n```\r\n\r\nin l2d function add check for typeof l[1] === 'string' for adding backward compatibility, add returning layerClass and arg. Then you can create layer by \"new L[layer.layerClass](layer.arg, layer.options)\""}}