Select to view content in your preferred language

SketchViewModel with feature layer Errors ... Uncaught RangeError: Invalid array length

1922
7
Jump to solution
04-01-2021 04:18 AM
ChristopheSuter
Regular Contributor

Hi,

I have following repeated errors using the SketchViewModel in a SceneView with an added feature layer and trying to draw a point (JS API 4.18)

SceneView.js:7888 Renderer.modify called while rendering

Uncaught RangeError: Invalid array length

... cycling and weakening performances.

Has anyone encountered the same problem

Here is a Codepen to reproduce

https://codepen.io/christophesuter/pen/LYxxoON

 

1 Solution

Accepted Solutions
SaschaBrunnerCH
Esri Contributor

Your codepen is using 4.18. When I switch it to 4.19 everything works fine for me. Can you check if it also works for you? Thanks

View solution in original post

7 Replies
SaschaBrunnerCH
Esri Contributor

Hi Christophe,
We could reproduce the behavior with your minimized reproduction app.
It looks like this happen with this specific featurelayer which interferes somehow with the sketching. It looks like a bug and reported it. We get back as soon as this got fixed.

ChristopheSuter
Regular Contributor

Hi Sascha,

Seems to be a problem with renderers, here is a codepen that is working using an object type symbol instead of an simplemarker and the problem does not happen

https://codepen.io/christophesuter/pen/qBRYNqj

0 Kudos
SaschaBrunnerCH
Esri Contributor

Hi Christophe,

This issue will be fixed at version 4.19 and will be released end of this week. You already can check by switching the app to https://js.arcgis.com/4.19/.
Thanks again for reporting.

-Sascha

ChristopheSuter
Regular Contributor

That was fast ! Works better now, many thanks !

ChristopheSuter
Regular Contributor

Ach ! Too fast .. same problems with polygon drawing in 4.19 .

See https://codepen.io/christophesuter/pen/qBRYNqj

 

0 Kudos
SaschaBrunnerCH
Esri Contributor

Your codepen is using 4.18. When I switch it to 4.19 everything works fine for me. Can you check if it also works for you? Thanks

ChristopheSuter
Regular Contributor

You're right ... sorry about that. Thanks for checking !

0 Kudos