This example widget moved to the official samples: https://developers.arcgis.com/experience-builder/sample-code/widgets/get-map-coordinates-function/
Example Experience Builder widget showing how to display the latitude and longitude, scale, and zoom level of the map.
- Download and unzip Experience Builder Developer Edition.
- Download the latest release from this repository.
- Unzip the downloaded files, and copy the
get-map-coordinates
folder into theclient\your-extensions\widgets\get-map-coordinates
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/get-map-coordinates-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.