Learn R Programming

leafem (version 0.2.4)

'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,838

Version

0.2.4

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Tim Appelhans

Last Published

May 1st, 2025

Functions in leafem (0.2.4)

addHomeButton

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

Add mouse coordinate information at top of map.
addStarsImage

Add stars layer to a leaflet map
addTileFolder

Add raster tiles from a local folder
customizeLayersControl

Customize Layers Control of a Leaflet Map
addReactiveFeatures

Add a reactive layer to 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
colorOptions

Color options for addGeoRaster and addGeotiff
addLogo

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

Add an RGB image as a layer
paintRules

Styling options for PMTiles
updateLayersControl

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

Garnish/decorate leaflet or mapview maps.
imagequeryOptions

Imagequery options for addGeoRaster, addGeotiff and addCOG
addGeoRaster

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

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

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

Add image query functionality to leaflet/mapview map.
addExtent

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

Copy current view extent to the clipboard
addFeatures

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

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

Add a flatgeobuf file to leaflet map