| nga_basemap | R Documentation |
Create a basemap layer linking to an NGA ArcGIS mapserver.
nga_basemap(basemap.identifier = "WSM", name = NULL, toggle.control = FALSE)
basemap.identifier |
character indicating which NGA 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 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.
A Layer.ArcGIS S3 object.
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 |
ol_map,
+.Ol.Map,
public_arcgis_basemap,
public_OSM_basemap,
user_arcgis_basemap
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.