• Stars
    star
    104
  • Rank 324,533 (Top 7 %)
  • Language
    JavaScript
  • License
    Other
  • Created about 5 years ago
  • Updated 10 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

leaflet extensions for mapview

leafem - leaflet extensions for mapview

R-CMD-check cran checks monthly total CRAN status

leafem provides extensions for package leaflet many of which are used by package mapview. The intention of this package is to enhance leaflet functionality to provide a more GIS-like feeling when plotting spatial data interactively.

Installation

You can install the released version of leafem from CRAN with:

install.packages("leafem")

Extensions

addFeatures

library(leaflet)

leaflet() %>% addProviderTiles("OpenStreetMap") %>% addFeatures(data = breweries91)

addMouseCoordinates

leaflet() %>%
  addProviderTiles("OpenStreetMap") %>%
  addMouseCoordinates()

garnishMap

library(leaflet)

m <- leaflet() %>% addProviderTiles("OpenStreetMap")
garnishMap(m, addMouseCoordinates)

addHomeButton

library(leaflet)
library(raster)

m <- leaflet() %>%
  addProviderTiles("OpenStreetMap") %>%
  addCircleMarkers(data = breweries91) %>%
  addHomeButton(extent(breweries91), "breweries91")
m

addImageQuery

library(leaflet)
library(plainview)

leaflet() %>%
  addProviderTiles("OpenStreetMap") %>%
  addRasterImage(poppendorf[[1]], project = TRUE, group = "poppendorf",
                 layerId = "poppendorf") %>%
  addImageQuery(poppendorf[[1]], project = TRUE,
                layerId = "poppendorf") %>%
  addLayersControl(overlayGroups = "poppendorf")

addLogo

img <- "https://www.r-project.org/logo/Rlogo.svg"

leaflet() %>% addTiles() %>% addLogo(img, url = "https://www.r-project.org/logo/")

Code of Conduct

Please note that the โ€˜leafemโ€™ project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

More Repositories

1

sf

Simple Features for R
R
1,265
star
2

rgee

Google Earth Engine for R
R
650
star
3

stars

Spatiotemporal Arrays, Raster and Vector Data Cubes
R
540
star
4

mapview

Interactive viewing of spatial data in R
JavaScript
503
star
5

leafgl

R package for fast web gl rendering for leaflet
R
261
star
6

mapedit

Interactive editing of spatial data in R
R
216
star
7

qgisprocess

R package to use QGIS processing algorithms
R
196
star
8

RQGIS

RQGIS - integrating R with QGIS
R
189
star
9

gstat

Spatial and spatio-temporal geostatistical modelling, prediction and simulation
C
188
star
10

dtwSat

Time-Weighted Dynamic Time Warping for satellite image time series analysis
R
126
star
11

spdep

Spatial Dependence: Weighting Schemes and Statistics
R
111
star
12

leafpop

Include Tables, Images and Graphs in Leaflet Popups
R
111
star
13

RQGIS3

R
69
star
14

s2

Spherical Geometry Operators Using the S2 Geometry Library
C++
69
star
15

r-spatial.org

r-spatial.org blog sources
HTML
58
star
16

lwgeom

bindings to the liblwgeom library
C
57
star
17

discuss

a discussion repository: raise issues, or contribute!
54
star
18

sfdbi

DBI interface to sf
R
53
star
19

sftime

time extension to sf objects
R
49
star
20

spatialreg

spatialreg: spatial models estimation and testing
R
41
star
21

rspatial_spark

This is the repo that sparked https://github.com/r-spatial
HTML
36
star
22

cesium

Cesium wrapper to R
R
33
star
23

leafsync

Small Multiples for Leaflet Webmaps
JavaScript
32
star
24

global

R-global: analysing spatial data globally
HTML
31
star
25

classInt

Choose Univariate Class Intervals
R
29
star
26

RPyGeo

Update of RPyGeo package - currently WIP
R
27
star
27

evolution

Preparing CRAN for the retirement of rgdal, rgeos and maptools
TeX
25
star
28

link2GI

Simplify the linking of GIS/RS and CLI tools
R
25
star
29

slideview

Compare Rasters Side by Side with a Slider
R
25
star
30

cubeview

Interactively Explore 3D Raster Data Cubes
JavaScript
24
star
31

leafpm

Leaflet.pm for R Leaflet
R
22
star
32

RSAGA

R
19
star
33

plainview

View Raster Images Interactively on a Plain HTML Canvas
R
13
star
34

task_views

Local copy for editing CRAN Task Views
R
9
star
35

rgeopackage

R package with helper tools in creating or handling GeoPackage files
R
9
star
36

r-spatial.github.io

r-spatial.github.io website
HTML
5
star