nga_basemap: NGA Basemap Layer

View source: R/basemaps.R

nga_basemapR Documentation

NGA Basemap Layer

Description

Create a basemap layer linking to an NGA ArcGIS mapserver.

Usage

nga_basemap(basemap.identifier = "WSM", name = NULL,
  toggle.control = FALSE)

Arguments

basemap.identifier

character indicating which NGA 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 https://home.gvs.nga.mil. These map servers are owned by the US Government and require authentication. If the basemap.identifier parameter is unrecognized the function will default to the NGA OpenStreetMap map server.

Value

A Layer.ArcGIS S3 object.

Available Base Maps

The following basemap.identifiers are currently supported by this method.

"ABM" Analytic Base Map
"LightGray" Analytic Base Map (Light Gray)
"Light_LightGray" Analytic Base Map (Light Light Gray)
"LightMidnight" Analytic Base Map (Light Midnight)
"Light_Slate" Analytic Base Map (Light Slate)
"Midnight" Analytic Base Map (Midnight)
"Slate" Analytic Base Map (Slate)
"CARDG" Scanned CARDG Maps
"DNC" Digital Nautical Charts
"Imagery" Satellite Imagery
"Hillshade" Hillshade Map
"ShadedRelief" Shaded Relief Map
"TintedHillshade" Tinted Hillshade Map
"WorldBoundaries" World Boundaries (WSM)
"WorldBoundaries_Places" World Boundaries, Places (WSM)
"WorldPlaceNames" World Place Names (WSM)
"WorldTransportation" World Transportation (WSM)
"WorldCities" Sample World Cities
"WSM" World Street Map

See Also

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

Examples

mymap <- ol_map()
base.layer <- nga_basemap('Midnight')
mymap <- mymap + base.layer
## Not run: 
ol_map2HTML(
  mymap,
  "SanDiegoMidnight.html",
  nga.olsource = TRUE ## Not required; can also use public OpenLayers
                      ## javascript source with NGA mapservers.
)
browseURL("SanDiegoMidnight.html")

## End(Not run)

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