{"action":"created","issue":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/3429","labels_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3429/labels{/name}","comments_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3429/comments","events_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3429/events","html_url":"https://github.com/CartoDB/cartodb/pull/3429","id":71919712,"number":3429,"title":"Gmaps revival","user":{"login":"javisantana","id":30147,"avatar_url":"https://avatars.githubusercontent.com/u/30147?v=3","gravatar_id":"","url":"https://api.github.com/users/javisantana","html_url":"https://github.com/javisantana","followers_url":"https://api.github.com/users/javisantana/followers","following_url":"https://api.github.com/users/javisantana/following{/other_user}","gists_url":"https://api.github.com/users/javisantana/gists{/gist_id}","starred_url":"https://api.github.com/users/javisantana/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javisantana/subscriptions","organizations_url":"https://api.github.com/users/javisantana/orgs","repos_url":"https://api.github.com/users/javisantana/repos","events_url":"https://api.github.com/users/javisantana/events{/privacy}","received_events_url":"https://api.github.com/users/javisantana/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-04-29T16:18:21Z","updated_at":"2015-05-05T14:11:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CartoDB/cartodb/pulls/3429","html_url":"https://github.com/CartoDB/cartodb/pull/3429","diff_url":"https://github.com/CartoDB/cartodb/pull/3429.diff","patch_url":"https://github.com/CartoDB/cartodb/pull/3429.patch"},"body":"Let's get back GMaps!\r\n\r\nthis is what changed:\r\n\r\n- backend:  \r\n    - basemaps are not static anymore, they depend on the user. Basically this allow us to set different basemaps depending if the user has google maps enabled or not. Check user.rb changes https://github.com/CartoDB/cartodb/pull/3337/files#diff-4676c008b11a5480d73d4a6de01e45b9R2352\r\n    - map creation: before app_config.yml configuration was being used, that was changed to be the default map for the user. Check map.rb and table.rb to see the changes. Not needed keys have been removed (so they could be removed from deploy cc @CartoDB/systems )\r\n   \r\n@Kartones I think there are some things to change in the new map.rb\r\n\r\n- systems:\r\n   - basemap configuration needs to be changed: https://github.com/CartoDB/cartodb-platform/issues/506\r\n\r\n- frontend\r\n\r\n  - enabled google maps again, torque, edition and so on is working (@fdans worked on it)\r\n  - google maps baselayer support in the dropdown\r\n  - lots of views changed to include google maps libray when needed\r\n\r\n\r\n\r\n\r\n### To make it work:\r\n\r\nIn order to have google maps you need to:\r\n\r\n1. Add the following to the basemaps section in app_config.yml\r\n\r\n```\r\nGMaps:\r\n      roadmap:\r\n        name: 'GMaps Roadmap'\r\n        maxZoom: 40\r\n        minZoom: 0\r\n        baseType: 'roadmap'\r\n        className: 'googlemaps'\r\n      hybrid:\r\n        name: 'GMaps Hybrid'\r\n        maxZoom: 40\r\n        minZoom: 0\r\n        baseType: 'hybrid'\r\n        className: 'googlemaps'\r\n      satellite:\r\n        name: 'GMaps Satellite'\r\n        maxZoom: 40\r\n        minZoom: 0\r\n        baseType: 'satellite'\r\n        className: 'googlemaps'\r\n      gray_roadmap:\r\n        name: 'GMaps Gray Roadmap'\r\n        maxZoom: 40\r\n        minZoom: 0\r\n        baseType: 'gray_roadmap'\r\n        className: 'googlemaps'\r\n        style: '[{ \"stylers\": [ { \"saturation\": -100 } ] },{ \"featureType\": \"water\", \"stylers\": [ { \"gamma\": 1.67 }, { \"lightness\": 27 } ] },{ \"elementType\": \"geometry\", \"stylers\": [ { \"gamma\": 1.31 }, { \"lightness\": 12 } ] },{ \"featureType\": \"administrative\", \"elementType\": \"labels\", \"stylers\": [ { \"lightness\": 51 }, { \"gamma\": 0.94 } ] },{ },{ \"featureType\": \"road\", \"elementType\": \"labels\", \"stylers\": [ { \"lightness\": 57 } ] },{ \"featureType\": \"poi\", \"elementType\": \"labels\", \"stylers\": [ { \"lightness\": 42 } ] }]'\r\n```\r\n\r\n2. Enable feature flag ```google_maps```.\r\n\r\n---\r\n\r\nFixes #3289."},"comment":{"url":"https://api.github.com/repos/CartoDB/cartodb/issues/comments/99089860","html_url":"https://github.com/CartoDB/cartodb/pull/3429#issuecomment-99089860","issue_url":"https://api.github.com/repos/CartoDB/cartodb/issues/3429","id":99089860,"user":{"login":"recena","id":1021745,"avatar_url":"https://avatars.githubusercontent.com/u/1021745?v=3","gravatar_id":"","url":"https://api.github.com/users/recena","html_url":"https://github.com/recena","followers_url":"https://api.github.com/users/recena/followers","following_url":"https://api.github.com/users/recena/following{/other_user}","gists_url":"https://api.github.com/users/recena/gists{/gist_id}","starred_url":"https://api.github.com/users/recena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/recena/subscriptions","organizations_url":"https://api.github.com/users/recena/orgs","repos_url":"https://api.github.com/users/recena/repos","events_url":"https://api.github.com/users/recena/events{/privacy}","received_events_url":"https://api.github.com/users/recena/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T14:11:57Z","updated_at":"2015-05-05T14:11:57Z","body":"retest this please"}}