Updates the map with the given styles

update_style(map, styles = NULL)

Arguments

map

a googleway map object created from google_map()

styles

JSON string representation of a valid Google Maps styles Array. See the Google documentation for details https://developers.google.com/maps/documentation/javascript/styling

Note

This function is intended for use with google_map_update in an interactive shiny environment. You can set the styles of the original map using the styles argument of google_map