Select to view content in your preferred language

Experience Builder on Base Map Load Event

445
1
09-20-2023 05:34 AM
Nadir_Hussain
Occasional Contributor

Hello All,

I am trying to load my layers from arcgis server rest service URL.In my code i set the custom popup info for feature layer.this feature layer i want to load when first time experience builder load base map.I want to check Base map load.After this i want to add my feature layer on the webmap view.

jimuMapView.view.map.add(featureLayer);like this. in which file i have to add this function.
 
But how can i do this in experience builder without adding any user interaction and adding any new widget.
Please help.
 
Thanks
 
 
 
0 Kudos
1 Reply
JeffreyThompson2
MVP Regular Contributor

In the Experience Builder environment, it is impossible to add any code without creating a custom widget to put it in.

The most common and best way to add a featureLayer in Experience Builder is to create a webmap in your ArcGIS Online/Enterprise portal and then import that webmap using the Map Widget.

Here are some helpful tutorials if you are new to Experience Builder. https://learn.arcgis.com/en/paths/try-arcgis-experience-builder/

GIS Developer
City of Arlington, Texas
0 Kudos