Last data update: 2014.03.03
|
R: Add custom base maps
addBaseMap | R Documentation |
Add custom base maps
Description
Add a custom base map to the list of maps available in the function leaflet .
Usage
addBaseMap(name, title, url, options)
Arguments
Author(s)
François Guillem
See Also
leaflet
Examples
## Not run:
# duplicates osm base map
addBaseMap(
name="myosm",
title="Duplicated OpenStreetMap",
url="http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",
options=list(
attribution='© <a href="http://openstreetmap.org/copyright", target=
"_blank">OpenStreetMap contributors</a>'
)
)
map <- leaflet(base.map="myosm", dest=tempdir())
## End(Not run)
Results
|