This sample demonstrates how to recursively query a layer and its nested sublayers to generate a popup template config for a MapImageLayer.
- Changed the following line to your own ArcGIS MapServer URL:
const mapImageLayerUrl =
"https://sampleserver6.arcgisonline.com/arcgis/rest/services/USA/MapServer";
- Run the sample:
npm install
npm run dev
-
Open the browser and navigate to https://localhost:5173/
-
Click the "Download Popup Template" button at the top left corner to download the popup template config.