Select to view content in your preferred language

Converting geometryEngine.crosses to crossesOperator and get an "e.getCacheValue is not a function" error

278
3
Jump to solution
04-10-2025 11:20 PM
Flookfinders
Occasional Contributor

Hi,

I am upgrading my code to v4.32.9 and I had the following line in my code:

lineIntersects = geometryEngine.crosses(lastSegment, line);

and noticed that from 4.32 geometryEngine.crosses had been deprecated and I should change to use crossesOperator.  So I changed the above line to:

lineIntersects = crossesOperator.execute(lastSegment, line);

Now when I run my code I get the following error:

Uncaught TypeError: e.getCacheValue is not a function

 

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Flookfinders
Occasional Contributor

After looking at the samples I have managed to track down my issue, so this is not an problem.

View solution in original post

0 Kudos
3 Replies
Flookfinders
Occasional Contributor

After looking at the samples I have managed to track down my issue, so this is not an problem.

0 Kudos
mgc1986
New Contributor

What was the issue you tracked down and fixed? Im currently running into this issue with no idea how to resolve.

0 Kudos
Flookfinders
Occasional Contributor

Sorry I can no longer remember exactly what I had to change. I do know that going through the sample demo code did show something that I needed to change, but for the life of me I can no longer remember what. Sorry.

0 Kudos