addProviderEspTiles(
  map,
  provider,
  layerId = NULL,
  group = NULL,
  options = providerEspTileOptions()
)

providerEspTileOptions(...)

Arguments

map

a map widget object created from leaflet()

provider

Name of the provider, see leaflet.providersESP.df.

layerId

the layer id

group

The name of the group the newly created layers should belong to. See leaflet::addTiles()

options

a list of extra options for tile layers, popups, paths (circles, rectangles, polygons, ...), or other map elements

...

Arguments passed on to leaflet::providerTileOptions

errorTileUrl

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

noWrap

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

opacity

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

zIndex

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

updateWhenIdle

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

detectRetina

the tile layer options; see https://leafletjs.com/reference-1.3.4.html#tilelayer

Source

https://dieghernan.github.io/leaflet-providersESP/ leaflet plugin, v1.2.0.

Value

Modified map object.

Details

Wrapper of leaflet::providerTileOptions()

See also

Author

dieghernan, https://github.com/dieghernan/

Examples

library(leaflet) PuertadelSol <- leaflet() %>% setView( lat = 40.4166, lng = -3.7038400, zoom = 18 ) %>% addProviderEspTiles(provider = "IGNBase.Gris") %>% addProviderEspTiles(provider = "RedTransporte.Carreteras") PuertadelSol