In mapview
by default, the mouse cursor and projection information are shown in a box at the top of the map.
How can I hide this information box as it is by default in leaflet
?
library(leaflet)
library(mapview)
leaflet(data = breweries) %>%
addTiles() %>%
addCircleMarkers()
And second, is there an option to show the basic style as in leaflet
?
leaflet(data = breweries) %>%
addTiles() %>%
addCircleMarkers() %>%
addMouseCoordinates(style = "basic")
I've tried to do this like this, but couldn't find a solution:
library(mapview)
m <- mapview(breweries)
m@map <- m@map %>%
addMouseCoordinates(style = "basic")
m
Thanks for the answer!