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
Solved! Go to Solution.
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
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.
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
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
That was fast ! Works better now, many thanks !
Ach ! Too fast .. same problems with polygon drawing in 4.19 .
See https://codepen.io/christophesuter/pen/qBRYNqj
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
You're right ... sorry about that. Thanks for checking !