| public_arcgis_basemap | R Documentation |
Create a basemap layer linking to an Public ArcGIS mapserver.
public_arcgis_basemap(basemap.identifier = "DeLorme", name = NULL, toggle.control = FALSE) lightgray(toggle.control = FALSE) oceanbase(toggle.control = FALSE)
basemap.identifier |
character indicating which Public ArcGIS mapserver to use. See 'Available Base Maps'. |
name |
character layer name. |
toggle.control |
logical. If |
Creates and returns an OpenLayers ArcGIS Tile layer that sources a
map server hosted at http://server.arcgisonline.com. If the
basemap.identifier parameter is unrecognized the function will
default to the DeLorme map server.
A Layer.ArcGIS S3 object.
lightgray: Call "LightGray" public_arcgis_basemap.
oceanbase: Call "OceanBase" public_arcgis_basemap.
The following basemap.identifiers are currently supported by this method.
| "LightGray" | World Light Gray Base |
| "USAPOP2010" | USA Population Change 2000-2010 |
| "Hillshade" | World Hillshade |
| "OceanBase" | World Ocean Base |
| "WorldBoundaries" | World Boundaries and Places |
| "WorldRefOverlay" | World Reference Overlay |
| "WorldTrans" | World Transportation |
| "WorldNav" | World Navigation Charts |
| "Imagery" | World Imagery |
| "DeLorme" | World Imagery |
ol_map,
+.Ol.Map,
nga_basemap,
public_OSM_basemap,
user_arcgis_basemap
mymap <- ol_map()
base.layer <- public_arcgis_basemap('LightGray')
mymap <- mymap + base.layer
## Not run:
ol_map2HTML(mymap,"SanDiego.html")
browseURL("SanDiego.html")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.