Wraps the <arcgis-map> web component directly. Most users want arc_map()
and add_layer(), which build the arguments for you.
Arguments
- layers
Defines the feature collection layers to draw, each as built by
as_feature_layer().- basemap
default
"topo-vector". Defines the basemap the layers draw over, as a basemap id.- center
default
NULL. Defines the initial centre asc(lon, lat). When unset the map frames the layers.- zoom
default
NULL. Defines the initial zoom level.- extent
default
NULL. Defines the initial extent, overridingcenterandzoom.- selectable
default
NULL. Defines which layers a click selects in, by layer id.- highlight
default
NULL. Defines the selection highlight styles, as a list of namedHighlightOptions. Seeset_highlight().- widgets
default
list(). Defines the SDK components drawn over the map, each a list ofcomponent,position, andprops. Seeadd_widget().- width, height
default
NULL. Defines the widget size, passed tohtmlwidgets::createWidget().- element_id
default
NULL. Defines the DOM element id to render into.
Examples
arcgis_map(basemap = "gray-vector", center = c(-98.3, 38.2), zoom = 4)