SymbolixAU / googleway

R Package for accessing and plotting Google Maps
http://symbolixau.github.io/googleway/
Other
234 stars 46 forks source link

Is it possible to set basemap with google_map() to sattelite? #240

Closed thruesen closed 2 years ago

thruesen commented 2 years ago

Hi,

I see that it is possible to set basemap as a parameter in google_map_url(), but not in google_map(). I need the map in my shiny application to default to satellite basemap. (Ref: https://developers.google.com/maps/documentation/javascript/maptypes)

Is there any way to do this with googleway?

Brgds. Michael

dcooley commented 2 years ago

yes - this will be available in the next CRAN release (in the next few days), or you can grab it from github now

remotes::install_github("SymbolixAU/googleway")

set_key( secret::get_secret("GOOGLE") )
google_map(map_type = "satellite")

Screenshot 2022-01-17 at 9 04 28 am