Giter Site home page Giter Site logo

leaflet.lagniappe's Introduction

leaflet.lagniappe

R-CMD-check

Additional Leaflet plugins for R that work under Shiny

Leaflet for R has support for several of the many available Leaflet plugins, but implementing others in R is non-trivial. Additional plugins in this package are tested under Shiny, both locally and on shinyapps.io, so you can use these in Shiny-based web pages. I'll continue to add plugins here as I develop them.

Installation

devtools::install_github('bwcompton/leaflet.lagniappe')

Example

library(leaflet)
library(leaflet.lagniappe)

leaflet() |>
addTiles() |>
osmGeocoder()
addFullscreen()

Included plugins

  1. osmGeocoder. Provides a field on a Leaflet map for a user to enter an address or place name. The map will zoom and center to the entered location.
  2. addFullscreen. Adds a full screen control to the map.

leaflet.lagniappe's People

Contributors

bwcompton avatar

Watchers

Ethan Plunkett avatar  avatar

leaflet.lagniappe's Issues

"Run examples" in help renders poorly in RStudio

The example in help runs fine when copied and pasted into the R console in RStudio, but it looks like crap and is nonfunctional when clicking "Run examples" in the Help pane. I haven't been able to figure this out yet. This doesn't affect the performance of this code, it's just an ugly mar on the documentation.

Implement Leaflet.fullscreen plugin

I've been using the version from leaflet.extras (https://github.com/bhaskarvk/leaflet.extras), but that repository has been abandoned, and it uses elderly JavaScript code that may have security vulnerabilities.

I want to re-implement it from https://github.com/Leaflet/Leaflet.fullscreen.

Note that the JS version is also quite old, and may be the same version as that used by leaflet.extras. I don't know what security implications there might be. Research needed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.