public_arcgis_basemap: Public ArcGIS Basemap Layer

View source: R/basemaps.R

public_arcgis_basemapR Documentation

Public ArcGIS Basemap Layer

Description

Create a basemap layer linking to an Public ArcGIS mapserver.

Usage

public_arcgis_basemap(basemap.identifier = "DeLorme", name = NULL,
  toggle.control = FALSE)

lightgray(toggle.control = FALSE)

oceanbase(toggle.control = FALSE)

Arguments

basemap.identifier

character indicating which Public ArcGIS mapserver to use. See 'Available Base Maps'.

name

character layer name.

toggle.control

logical. If TRUE, a checkbox will appear on the map allowing the viewer to toggle its visibility in the browser.

Details

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.

Value

A Layer.ArcGIS S3 object.

Functions

  • lightgray: Call "LightGray" public_arcgis_basemap.

  • oceanbase: Call "OceanBase" public_arcgis_basemap.

Available Base Maps

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

See Also

ol_map, +.Ol.Map, nga_basemap, public_OSM_basemap, user_arcgis_basemap

Examples

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)

cemarks/ROpenLayers documentation built on March 31, 2022, 12:05 p.m.