Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

llongour/leaflet.maplibregl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

leaflet.mapblibregl

Provides an R interface to extend the R Leaflet package with the MapLibre GL Leaflet plugin.

Compatibility

WebGL support is required. Most modern web browsers are supported, but IE11 may not work.

RStudio 1.1 on Windows and Linux do not support WebGL and will not work. RStudio 1.1 for Mac should work.

RStudio 1.2 will work if the rendering engine is set to Desktop OpenGL, which is the default on many systems. If your maps fail to render, you can try changing the rendering engine from the default value of "Auto-detect" to "Desktop OpenGL" by going to Tools | Global Options | General | Advanced | Rendering Engine. (Tip: If this puts your IDE into an unusable state, holding Ctrl during startup will bring up a dialog that lets you revert the Rendering Engine setting to "Auto-detect".)

Installation

This package is not yet available on CRAN.

devtools::install_github("llongour/leaflet.maplibregl")

Usage

Create your Leaflet map, and call the addMaplibreGL function.

library(leaflet)
library(leaflet.maplibregl)

leaflet() %>%
  addMaplibreGL(style = "[https://maputnik.github.io/osm-liberty/style.json](https://demotiles.maplibre.org/style.json)")

License

MIT

About

Extends the R Leaflet package with a Mapbox GL JS plugin to allow easy drawing of vector tile layers.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • R 84.2%
  • JavaScript 11.9%
  • CSS 3.9%