This example widget moved to the official samples: https://developers.arcgis.com/experience-builder/sample-code/widgets/add-layers/
Example Experience Builder widget showing how to add a Feature Layer to a map.
- Download and unzip Experience Builder Developer Edition.
- Download the latest release from this repository.
- Unzip the downloaded files, and copy the
addLayers
folder into theclient\your-extensions\widgets\addLayers
folder of the extracted Experience Builder files.
- Download and unzip Experience Builder Developer Edition.
- Open a new terminal window and browse to the
client
folder. git clone https://github.com/gavinr/add-layers-experience-builder
npm ci
npm start
- Start Experience Builder server per the instructions (in a separate terminal,
cd server
,npm ci
,npm start
)
- Open the
client
folder as a project in VS Code (or similar code editor). - Make sure both scripts are running (in the
server
folder andclient
) folder). - Every time you make a change to your widget, it will be re-built with webpack automatically.
View my other Experience Builder projects here.