ArcGIS Maps SDK for JavaScript components are a collection of pre-built UI components for building web apps with minimal code.
Built as standards-based web components, they extend the JavaScript Maps SDK core API into reusable custom HTML elements, such as <arcgis-map
.
They are also designed to be JavaScript framework agnostic, so you can use them in applications built with vanilla JavaScript or with most frameworks and module bundlers.
Map components
The @arcgis/map-components
package contains the map component, the scene component, and other components with functionality equivalent to SDK's existing widgets.
These components are an alternative option for quickly building mapping apps when integrating with frameworks. Here is a code snippet to demonstrate the basic concept:
<arcgis-map item-id="05e015c5f0314db9a487a9b46cb37eca"></arcgis-map>
Charts components (beta)
The @arcgis/charts-components
package contains a series of components that can be used to build charts in your ArcGIS Maps SDK for JavaScript applications.
When used alongside maps, they can provide a complete data visualization story of your data. Currently, eight different types of chart components are available.
Each chart component can be rendered by referring to a JSON object that follows a common chart specification, which contains the configuration for the chart.
The @arcgis/charts-model
package can be used to ease the creation and updating of that chart's configuration.
Coding components
The @arcgis/coding-components
package contains the Arcade editor component. With this component, end users can create Arcade expressions for the purpose of dynamically create new data values for renderers, popups and labels.
Users will have the same experience editing their Arcade expressions as they do in Map Viewer and the Arcade playground.
Embeddable Components
The embeddable components contain an embedded map component. This component allows users to quickly integrate a WebMap into any website with default components (i.e. zoom, legend, bookmarks) pre-configured. Users can now add interactive maps from ArcGIS Online’s Map Viewer with minimal setup.
<arcgis-embedded-map item-id="ceb8954a5f2c457284c5074efd5a5ca0" theme="dark" heading-enabled legend-enabled information-enabled style="height:300px;"></arcgis-embedded-map>