Skip to content
Advertisement

Tag: arcgis-js-api

why can’t access the function inside the listener

I am using a class component. When I run this script, it plots the graphic, but in the next line when it calls the function computePM_from_ClickedPoint, I get the error below. The error refers to “this”, but without it, I cannot call the function. Suggestions? Error: Cannot read properties of undefined (reading ‘computePM_from_ClickedPoint’) tried unsuccessfully changing the call to: Answer

Advertisement