In the developer edition of Experience Builder (Download), after unzipping it in a local drive, I came across this utils.ts file in this location - client\dist\widgets\arcgis\arcgis-map\src\runtime\utils.ts with many useful functions (such as selectFeature, flashOnFeatureLayer, queryFeatures)
How can I use these functions in a custom widget that I am developing? What is the best way to import this module?
Solved! Go to Solution.
You specify a specific function in the module to import.
import {selectFeature} from 'dist/widgets/arcgis/arcgis-map/src/runtime/utils'
You specify a specific function in the module to import.
import {selectFeature} from 'dist/widgets/arcgis/arcgis-map/src/runtime/utils'