SymbolixAU / googleway

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

Question : update map position in shiny app #230

Closed chalioui closed 2 years ago

chalioui commented 3 years ago

Hi! There is any way to update the initial starting position of the map by providing a vector of latitude/longitude and a zoom level in a shiny app ?

Thank you

dcooley commented 3 years ago

The google_map() function has both a location and a zoom argument for this.

chalioui commented 3 years ago

Yes, but how we can update it in a shiny app using google_map_update ?

dcooley commented 3 years ago

Good question. At the moment I think the only way to do this is by supplying data to one of the add_*() layers, as the view will update to where your data is.

dcooley commented 2 years ago

as per this comment there is now a google_map_view() function for updating the view