Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

addTileFolder

Add raster tiles from a local folder


Description

Add tiled raster data pyramids from a local folder that was created with gdal2tiles.py (see https://gdal.org/gdal2tiles.html for details).

Usage

addTileFolder(
  map,
  folder,
  tms = TRUE,
  layerId = NULL,
  group = NULL,
  attribution = NULL,
  options = leaflet::tileOptions(),
  data = leaflet::getMapData(map)
)

Arguments

map

a mapview or leaflet object.

folder

the (top level) folder where the tiles (folders) reside.

tms

whether the tiles are served as TMS tiles.

layerId

the layer id.

group

the group name for the tile layer to be added to map.

attribution

the attribution text of the tile layer (HTML).

options

a list of extra options for tile layers. See tileOptions for details. When the tiles were created with gdal2tiles.py argument tms needs to be set to TRUE.

data

the data object from which the argument values are derived; by default, it is the data object provided to leaflet() initially, but can be overridden.


leafem

'leaflet' Extensions for 'mapview'

v0.1.3
MIT + file LICENSE
Authors
Tim Appelhans [cre, aut], Christoph Reudenbach [ctb], Kenton Russell [ctb], Jochen Darley [ctb], Daniel Montague [ctb] (Leaflet.EasyButton plugin), Lorenzo Busetto [ctb], Luigi Ranghetti [ctb], Miles McBain [ctb], Sebastian Gatscha [ctb], Björn Harrtell [ctb] (FlatGeobuf plugin), Daniel Dufour [ctb] (georaster-layer-for-leaflet)
Initial release
2020-07-19

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.