Learn R Programming

leafem (version 0.2.5)

'leaflet' Extensions for 'mapview'

Description

Provides extensions for packages 'leaflet' & 'mapdeck', many of which are used by package 'mapview'. Focus is on functionality readily available in Geographic Information Systems such as 'Quantum GIS'. Includes functions to display coordinates of mouse pointer position, query image values via mouse pointer and zoom-to-layer buttons. Additionally, provides a feature type agnostic function to add points, lines, polygons to a map.

Copy Link

Version

Install

install.packages('leafem')

Monthly Downloads

32,242

Version

0.2.5

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Appelhans

Last Published

August 28th, 2025

Functions in leafem (0.2.5)

customizeLayersControl

Customize Layers Control of a Leaflet Map
paintRules

Styling options for PMTiles
imagequeryOptions

Imagequery options for addGeoRaster, addGeotiff and addCOG
addRasterRGB

Add an RGB image as a layer
addMouseCoordinates

Add mouse coordinate information at top of map.
addLogo

add a local or remote image (png, jpg, gif, bmp, ...) to a leaflet map
updateLayersControl

Update the layer controls when adding layers to an existing map.
addHomeButton

Add a home button / zoom-to-layer button to a map.
addExtent

Add extent/bbox of spatial objects to a leaflet map
addImageQuery

Add image query functionality to leaflet/mapview map.
addFgb

Add a flatgeobuf file to leaflet map
addCopyExtent

Copy current view extent to the clipboard
addGeoRaster

Add stars/raster image to a leaflet map using optimised rendering.
addGeotiff

Add a GeoTIFF file to a leaflet map using optimised rendering.
addLocalFile

Add vector data to leaflet map directly from the file system
addCOG

Add Cloud Optimised Geotiff (COG) to a leaflet map.
addFeatures

Type agnositc version of leaflet::add* functions.
colorOptions

Color options for addGeoRaster and addGeotiff
addStarsImage

Add stars layer to a leaflet map
addPMPolygons

Add vector tiles stored as PMTiles in an AWS S3 bucket to a leaflet map.
addStaticLabels

Add static labels to leaflet or mapview objects
addTileFolder

Add raster tiles from a local folder
addReactiveFeatures

Add a reactive layer to map.
garnishMap

Garnish/decorate leaflet or mapview maps.