powered by
Enables caching of tiles locally in browser. See https://github.com/MazeMap/Leaflet.TileLayer.PouchDBCached for details. In addition to invoking this function, you should also pass useCache=TRUE & crossOrigin=TRUE in the tileOptions call and pass that to your addTiles's options parameter.
useCache=TRUE
crossOrigin=TRUE
tileOptions
addTiles
options
enableTileCaching(map)
The leaflet map
# NOT RUN { leaflet() %>% enableTileCaching() %>% addTiles(options=tileOptions(useCache=TRUE,crossOrigin=TRUE)) # }
Run the code above in your browser using DataLab