Widget development: Using utils.ts from client\dist folder

328
1
Jump to solution
04-08-2022 02:00 AM
KarthikAditya
New Contributor III

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?

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

@KarthikAditya 

You specify a specific function in the module to import.

import {selectFeature} from 'dist/widgets/arcgis/arcgis-map/src/runtime/utils'

View solution in original post

0 Kudos
1 Reply
RobertScheitlin__GISP
MVP Emeritus

@KarthikAditya 

You specify a specific function in the module to import.

import {selectFeature} from 'dist/widgets/arcgis/arcgis-map/src/runtime/utils'
0 Kudos