Use Map Components

This sample demonstrates how to use @arcgis/map-components in a widget.

How to use the sample

Clone the sample repo and copy this widget's folder (within widgets) to the client/your-extensions/widgets folder of your Experience Builder installation.

How it works

This widget initialized @arcgis/map-components and imports components from @arcgis/map-components-react. Then it gets a MapView instance and set it to the component.

Please note before the version 1.15, the dependent code will be compiled into the widget. For version 1.15+, please refer to the use-map-components2 sample widget.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close