Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding google tiles with R

I'm using the leafletpackage with R to generate interactive maps and I would like to use the Google Maps layer. However Google Maps are not available as an argument of the function addProviderTiles. How can I add these google layers with R ?

Thank you very much !

like image 582
Hugo Avatar asked Nov 05 '15 11:11

Hugo


1 Answers

Try this leaflet() %>% addTiles(urlTemplate = "https://mts1.google.com/vt/lyrs=s&hl=en&src=app&x={x}&y={y}&z={z}&s=G", attribution = 'Google')

like image 65
tepedizzle Avatar answered Oct 12 '22 08:10

tepedizzle