trafficonese / leaflet.extras

Extra functionality for leaflet R package.
https://trafficonese.github.io/leaflet.extras/
GNU General Public License v3.0
216 stars 74 forks source link

Add plugin to move zoom control #106

Closed adamdsmith closed 7 months ago

adamdsmith commented 7 years ago

I often find myself wanting to relocate the zoom control from the default "upperleft". This function does that. I suspect there's a more preferred means of adding this functionality rather than the "plugin" approach I've taken.

library(leaflet.extras)

# Place zoom control at bottom right by default
leaflet() %>%
    addTiles() %>%
    moveZoomControl()

# Other standard location references work as well
leaflet() %>%
    addTiles() %>%
    moveZoomControl("bottomleft")
bhaskarvk commented 6 years ago

I'll be resuming development of leaflet.extras in Dec and will tackle this in that round. Thanks!

trafficonese commented 7 months ago

Could you maybe reopen a new and clean PR and also include the installation method for the plugin? Is it available via npm or is it only a github repo?