Description Usage Arguments Details Value Author(s) See Also Examples
Create a Leaflet map widget with base maps offered through The National Map (TNM). Information about the content of these base maps can be found within the TNM Base Maps document.
1 | CreateWebMap(maps, ..., collapsed = TRUE, service = c("rest", "wms"))
|
maps |
'character' vector.
TNM base maps to include in the web map.
Possible maps include |
... |
Arguments to be passed to the |
collapsed |
'logical' flag. Whether the layers control should be rendered as an icon that expands when hovered over. |
service |
'character' string.
Mapping services for accessing TNM base-map tiles.
Select |
Map service endpoints are offered through TNM with no use restrictions. However, map content is limited to the United States and territories. This function integrates TNM endpoint services within an interactive web map using Leaflet for R.
An object of class 'leaflet', a hypertext markup language (HTML) widget object. See example for instructions on how to add additional graphic layers (such as points, lines, and polygons) to the map widget. Graphic layers added to the web map must be in latitude and longitude using WGS 84 (also known as EPSG:4326).
J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.