Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question : update map position in shiny app #230

Closed
chalioui opened this issue Dec 28, 2020 · 4 comments
Closed

Question : update map position in shiny app #230

chalioui opened this issue Dec 28, 2020 · 4 comments

Comments

@chalioui
Copy link

chalioui commented Dec 28, 2020

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

@chalioui chalioui changed the title Question : update map position Question : update map position in shiny app Dec 29, 2020
@dcooley
Copy link
Collaborator

dcooley commented Dec 29, 2020

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

@chalioui
Copy link
Author

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

@dcooley
Copy link
Collaborator

dcooley commented Jan 10, 2021

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
Copy link
Collaborator

dcooley commented Jun 3, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants