You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nope for both. Minimap is neat but doesn't really add any value for quick layer inspection. Regarding providers, I call addProviderTiles("XXX") directly, e.g. "CartoDB.Positron"
I think it's a nice feature, especially in unfamiliar areas.
I made a pull request in leaflet, as you can see above. For now, a message "please load leaflet" is shown when tm_minimap doesn't work. Also I changed the default value of qtm.minimap to FALSE.
Just before going to submit tmap(tools) 2.0 to CRAN, I found this bug:
throws this error, while
works.
The call traceback of the error is:
The list object
providers
is not exported byleaflet
(i.e. it is not in its NAMESPACE), but made accessible with this dirty (but working) hack:See https://github.com/rstudio/leaflet/blob/master/R/plugin-minimap.R#L1. Therefore, the
providers
object can be accessed withleaflet::providers
.Does anyone has a clue how to use
addMinimap
inside a package? It is called here: https://github.com/mtennekes/tmap/blob/master/R/view_tmap.R#L653 @tim-salabim : do you use minimaps or theproviders
object inmapview
?The text was updated successfully, but these errors were encountered: