Hi,
I'm looking to apply the principals from this example below, but to a polygon feature class. Unfortunately, it keeps getting the following error.
error happened: Cannot read properties of undefined (reading 'length')
https://developers.arcgis.com/javascript/latest/sample-code/highlight-features-by-geometry/
Thank you in advance,
Steve
Solved! Go to Solution.
Hi there,
The sample should work with a feature service with any geometry types. Can you tell me which line or method s throwing this error? Simple reproducible case can help to narrow down the issue.
Here is the same sample working with polygon feature service: https://codepen.io/U_B_U/pen/QWQERdX?editors=1000
Hi there,
The sample should work with a feature service with any geometry types. Can you tell me which line or method s throwing this error? Simple reproducible case can help to narrow down the issue.
Here is the same sample working with polygon feature service: https://codepen.io/U_B_U/pen/QWQERdX?editors=1000
Thank you for this, I wasn't suing the correct field type when doing the selection.